|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmarkov.basic.State
public abstract class State
The Class State represent a state in a MarkovProcess or MDP. The user of the class should estiblish her own coding convention AND code the compareTo method. If the State can be represented with a vector of integers describing its properties, then it might be easier to implement PropertiesState rather than State.
PropertiesState class| Constructor Summary | |
|---|---|
State()
|
|
| Method Summary | |
|---|---|
abstract int |
compareTo(State j)
The method compareTo should be implemented in order to establish a total ordering among the States. |
abstract void |
computeMOPs(MarkovProcess<?,?> model)
This method should be implemented in order to compute all the measures of performance MOPs. |
java.lang.String |
description()
Returns a String that describes the State. |
boolean |
equals(java.lang.Object o)
If Object is not State it returns false. |
int |
getIndex()
|
double |
getMOP(int index)
Gets the value of this MOP. |
double |
getMOP(java.lang.String mopName,
MarkovProcess<?,?> model)
Gets the value of the MOP with this name, by calling getMOP(int) |
abstract boolean |
isConsistent()
This method is called when a state is added to a set, if assertions are enabled. |
abstract java.lang.String |
label()
Returns a (hopefully short) label that descibes the State. |
int |
setMOP(int index,
double value)
Sets the value of this MOP. |
int |
setMOP(MarkovProcess<?,?> model,
java.lang.String mopName,
double value)
Sets the value of the MOP with this name. |
java.lang.String |
toString()
Returns the label. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public State()
| Method Detail |
|---|
public abstract int compareTo(State j)
compareTo in interface java.lang.Comparable<State>Comparable.compareTo(Object)public final boolean equals(java.lang.Object o)
equals in interface JMarkovElementequals in class java.lang.Objecto - The Object to compare to.
Object.equals(java.lang.Object)
public final int setMOP(int index,
double value)
index - value -
public int setMOP(MarkovProcess<?,?> model,
java.lang.String mopName,
double value)
mopName - model - The model being solved.value -
public abstract void computeMOPs(MarkovProcess<?,?> model)
setMop("Utilization server 1", x, model);. * For large
models override this method as empty and rather override getMOP(int). Do
NOT mix both approaches!!
model - The model being solved.getMOP(int)
public final double getMOP(java.lang.String mopName,
MarkovProcess<?,?> model)
getMOP(int)
- Parameters:
mopName - The name of the MOP.model - Model being solved.
- Returns:
- current MOP value
- See Also:
getMOP(int)
public double getMOP(int index)
index -
MarkovProcess.setMOPs(String[])public abstract boolean isConsistent()
public abstract java.lang.String label()
label in interface JMarkovElementJMarkovElement.description()public java.lang.String description()
description in interface JMarkovElementJMarkovElement.label()public final java.lang.String toString()
toString in interface JMarkovElementtoString in class java.lang.Objectlabel()public final int getIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||