Sub
- The sub-States class used.public final class GeomState<Sub extends State> extends State
Constructor and Description |
---|
GeomState(Sub subState,
int level)
Creates a GeomState with the given level, ans subState.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public GeomState(Sub subState, int level)
level
- subState
- public int getLevel()
public boolean isBoundary()
public Sub getSubState()
public int compareTo(State s)
public void computeMOPs(MarkovProcess mp)
State
setMop("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 State
mp
- The model being solved.State.computeMOPs(MarkovProcess)
public double getMOP(int index)
State
getMOP
in class State
State.getMOP(int)
public java.lang.String label()
State
label
in interface JMarkovElement
label
in class State
State.label()
public int setMOP(MarkovProcess mp, java.lang.String mopName, double value)
State
setMOP
in class State
mp
- The model being solved.State.setMOP(MarkovProcess,java.lang.String, double)
public java.lang.String description()
State
description
in interface JMarkovElement
description
in class State
JMarkovElement.label()
public boolean isConsistent()
State
isConsistent
in class State
State.isConsistent()