jmdp.basic
Class ActionArray

java.lang.Object
  extended by jmdp.basic.Action
      extended by 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

Field Summary
protected  int[] properties
           
 
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.
 
Method Summary
 int compareTo(Action a)
           
 int compareTo(ActionArray a)
           
 int hashCode()
           
 java.lang.String label()
          The user MUST override this method to give a (hopefully short) label for the state.
 
Methods inherited from class jmdp.basic.Action
equals, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

properties

protected int[] properties
Constructor Detail

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 -
Method Detail

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