jmdp.basic
Class ActionArray
java.lang.Object
jmdp.basic.Action
jmdp.basic.ActionArray
- All Implemented Interfaces:
- java.lang.Comparable<Action>
public abstract class ActionArray
- extends Action
This class is an easy way to use a Action that is represented by an array.
- Author:
- Andres Sarmiento, German Riano - Universidad de Los Andes
Constructor Summary |
ActionArray(int size)
Creates an Action Object wit an array of the given size. |
ActionArray(int[] properties)
Builds an object with the given array. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
properties
protected int[] properties
ActionArray
public ActionArray(int[] properties)
- Builds an object with the given array.
- Parameters:
properties
-
ActionArray
public ActionArray(int size)
- Creates an Action Object wit an array of the given size.
- Parameters:
size
-
label
public java.lang.String label()
- Description copied from class:
Action
- The user MUST override this method to give a (hopefully short) label for
the state.
- Specified by:
label
in class Action
- Returns:
- short description of the state.
compareTo
public final int compareTo(ActionArray a)
compareTo
public final int compareTo(Action a)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object