public abstract class State extends java.lang.Object implements java.lang.Comparable<State>, JMarkovElement
PropertiesState class
Constructor and Description |
---|
State() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 JMarkovElement
equals
in class java.lang.Object
o
- 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)
mopName
- The name of the MOP.model
- Model being solved.getMOP(int)
public double getMOP(int index)
index
- MarkovProcess.setMOPs(String[])
public abstract boolean isConsistent()
public abstract java.lang.String label()
label
in interface JMarkovElement
JMarkovElement.description()
public java.lang.String description()
description
in interface JMarkovElement
JMarkovElement.label()
public final java.lang.String toString()
toString
in interface JMarkovElement
toString
in class java.lang.Object
label()
public final int getIndex()