|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface States<S extends State>
This interface represents a set of objects State. The user must choose his own data structure and define the constuctors. It is recommended to use the Set structure to avoid repeated states.
Method Summary | |
---|---|
void |
add(S s)
This method adds an object to the set of states. |
java.util.Iterator<S> |
iterator()
This function must be implemented. |
void |
remove(S s)
Removes an object from the set. |
int |
size()
Returns the number of elements. |
Method Detail |
---|
java.util.Iterator<S> iterator()
iterator
in interface java.lang.Iterable<S extends State>
void add(S s)
s
- object to be added.void remove(S s)
int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |