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, toStringgetClass, hashCode, notify, notifyAll, wait, wait, waitdescription, equals, toStringpublic PropertiesAction(int[] properties)
properties - public PropertiesAction(int size)
size - public java.lang.String label()
Actionlabel in interface JMarkovElementlabel in class ActionJMarkovElement.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 PropertiesElementpublic int getProperty(int index)
getProperty in interface PropertiesElementindex - public int getNumProps()
getNumProps in interface PropertiesElementpublic PropertiesAction clone()
clone in interface PropertiesElementclone in class java.lang.Object