public class Alphabet extends Element
Constructor and Description |
---|
Alphabet()
Creates an empty Alphabet.
|
Modifier and Type | Method and Description |
---|---|
Alphabet |
addEvent(Event event)
Adds an event to this alphabet.
|
java.util.Set<Event> |
getEvents()
Returns the set of events in this alphabet.
|
boolean |
isEmpty()
Reports whether this Alphabet is empty.
|
int |
size()
Returns the size of this alphabet.
|
Alphabet |
subtract(Alphabet other)
Computes the difference between this and the other Alphabet.
|
safeEquals, safeHashCode, semanticError
public boolean isEmpty()
public int size()
public Alphabet addEvent(Event event)
event
- the event.public java.util.Set<Event> getEvents()
public Alphabet subtract(Alphabet other)
other
- the other Alphabet.