|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.ObjectState
public class State
State for a DFA. Attributes of a state include its Name (an immutable unique identifier within the FA), its Label (an immutable comment regarding the intent of the state), and its Activity Counter (an integer valued variable typically used for collecting statistics).
| Constructor Summary | |
|---|---|
State(String name,
String label)
Constructs a state with the specified name and label. |
|
| Method Summary | |
|---|---|
long |
counter()
Retrieves the activity counter of this state. |
void |
increment()
Increments the activity counter of this state. |
String |
label()
Retrieves the label of this state. |
String |
name()
Retrieves the name of this state. |
void |
reset()
Resets the activity counter of this state to 0. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public State(String name,
String label)
name - the name for this statelabel - the label for this state| Method Detail |
|---|
public long counter()
public void increment()
public String label()
public String name()
public void reset()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||