|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmarkov.State
jmarkov.PropertiesState
public class PropertiesState
The states are characterized by an array of integer-valued properties, whose meaning will chnage from implementation to implementation. The class can be used as is or extended.
Field Summary | |
---|---|
protected int[] |
prop
This array contains the properties that characterize the state. |
Constructor Summary | |
---|---|
PropertiesState(int K)
Constructs a State charcterized by K properties. |
|
PropertiesState(int[] properties)
Constructs a State with the given properties array. |
|
PropertiesState(PropertiesState s)
Constructs a new State by cloning the given State. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a ne PropertiesState Object with the same properties as this one. |
int |
compareTo(State s)
The construction is made according to the values of the properties, starting from prop[0] to prop[K]. |
void |
computeMOPs()
By default it computes the long run average for each property. the user should override this method in order to compute more meaningful measures of performance. |
boolean |
equals(java.lang.Object s)
Returns true if the given object s is equal to this. |
int[] |
getProperties()
|
int |
getProperty(int index)
|
java.lang.String |
label()
Returns a string representation of this state in vector form. |
protected void |
setProperty(int index,
int value)
Sets the value of the propertie at the given index |
Methods inherited from class jmarkov.State |
---|
addMOPName, clearMOPs, description, getMOP, getMOP, getMOPIndex, getMOPNames, getMOPNames, getNum, getRates, getRateToState, mopsNames, numMOPNames, setMOP, setMOP, setMOPNames, setRateToState, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final int[] prop
Constructor Detail |
---|
public PropertiesState(int K)
public PropertiesState(int[] properties)
public PropertiesState(PropertiesState s)
Method Detail |
---|
public void computeMOPs()
computeMOPs
in class State
State.computeMOPs()
public final int compareTo(State s)
compareTo
in interface java.lang.Comparable<State>
compareTo
in class State
public boolean equals(java.lang.Object s)
equals
in class State
public java.lang.Object clone()
clone
in class java.lang.Object
Object.clone()
public java.lang.String label()
label
in class State
public final int[] getProperties()
public int getProperty(int index)
index
-
protected void setProperty(int index, int value)
index
- value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |