jmdp.basic
Interface Actions<A extends Action>

All Superinterfaces:
java.lang.Iterable<A>
All Known Implementing Classes:
ActionsSet

public interface Actions<A extends Action>
extends java.lang.Iterable<A>

This interface represents a set of objects Action. The user must choose his own data structure and define the constuctors. Itīs recommended to use the Set structure to avoid repeated actions. The ActionsSet class extends this class and explotes the goodnesses of Collections. It is recommended to use that class instead of this one for beginner users.

Author:
Andres Sarmiento, German Riano. - Universidad de Los Andes
See Also:
Iterable, ActionsSet

Method Summary
 java.util.Iterator<A> iterator()
          This function must be implemented.
 int size()
          Returns the number of elements.
 

Method Detail

iterator

java.util.Iterator<A> iterator()
This function must be implemented. Must return an iterator over the Actions.

Specified by:
iterator in interface java.lang.Iterable<A extends Action>

size

int size()
Returns the number of elements.

Returns:
the number of elements.