public class PropertiesAction extends Action implements PropertiesElement
Constructor and Description |
---|
PropertiesAction(int size)
Creates an Action Object wit an array of the given size.
|
PropertiesAction(int[] properties)
Builds an object with the given array.
|
Modifier and Type | Method and Description |
---|---|
PropertiesAction |
clone() |
int |
compareTo(Action a) |
int |
compareTo(PropertiesAction a) |
int |
getNumProps()
Returns the number of properties in the array that characterize this
element.
|
int[] |
getProperties()
Gets thae array of properties.
|
int |
getProperty(int index)
Gets the value of this property.
|
java.lang.String |
label()
The user MUST override this method to give a (hopefully short) label for
the Action.
|
description, equals, toString
getClass, hashCode, notify, notifyAll, wait, wait, wait
description, equals, toString
public PropertiesAction(int[] properties)
properties
- public PropertiesAction(int size)
size
- public java.lang.String label()
Action
label
in interface JMarkovElement
label
in class Action
JMarkovElement.description()
public final int compareTo(PropertiesAction a)
a
- The action array to compare toComparable.compareTo(T)
public final int compareTo(Action a)
compareTo
in interface java.lang.Comparable<Action>
public final int[] getProperties()
getProperties
in interface PropertiesElement
public int getProperty(int index)
getProperty
in interface PropertiesElement
index
- public int getNumProps()
getNumProps
in interface PropertiesElement
public PropertiesAction clone()
clone
in interface PropertiesElement
clone
in class java.lang.Object