|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmarkov.basic.State
jmarkov.GeomState<Sub>
Sub - The sub-States class used.public final class GeomState<Sub extends State>
The actual Geometric model is build using this class. The user normally does not have to manipulate this class.
| Field Summary | |
|---|---|
protected int |
level
This represents the relative level. |
protected Sub |
subState
subState represnts the background states in every level. |
| Constructor Summary | |
|---|---|
GeomState(Sub subState,
int level)
Creates a GeomState with the given level, ans subState. |
|
| Method Summary | |
|---|---|
int |
compareTo(State s)
Compares GeomStates according to level first and then according to the subStates comparator. |
void |
computeMOPs(MarkovProcess mp)
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. |
int |
getLevel()
|
double |
getMOP(int index)
Gets the value of this MOP. |
Sub |
getSubState()
|
boolean |
isBoundary()
|
boolean |
isConsistent()
This method is called when a state is added to a set, if assertions are enabled. |
java.lang.String |
label()
Returns a (hopefully short) label that descibes the State. |
int |
setMOP(MarkovProcess mp,
java.lang.String mopName,
double value)
Sets the value of the MOP with this name. |
| Methods inherited from class jmarkov.basic.State |
|---|
equals, getIndex, getMOP, setMOP, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int level
protected Sub extends State subState
| Constructor Detail |
|---|
public GeomState(Sub subState,
int level)
level - subState - | Method Detail |
|---|
public int getLevel()
public boolean isBoundary()
public Sub getSubState()
public int compareTo(State s)
compareTo in interface java.lang.Comparable<State>compareTo in class States - state to compare to.
Comparable.compareTo(Object)public void computeMOPs(MarkovProcess mp)
StatesetMop("Utilization server 1", x, model);. * For large
models override this method as empty and rather override getMOP(int). Do
NOT mix both approaches!!
computeMOPs in class Statemp - The model being solved.State.computeMOPs(MarkovProcess)public double getMOP(int index)
State
getMOP in class StateState.getMOP(int)public java.lang.String label()
State
label in interface JMarkovElementlabel in class StateState.label()
public int setMOP(MarkovProcess mp,
java.lang.String mopName,
double value)
State
setMOP in class Statemp - The model being solved.
State.setMOP(MarkovProcess,java.lang.String, double)public java.lang.String description()
State
description in interface JMarkovElementdescription in class StateJMarkovElement.label()public boolean isConsistent()
State
isConsistent in class StateState.isConsistent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||