|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmarkov.basic.State
jmarkov.basic.StateEvent<S,E>
S
- States setE
- Event setpublic class StateEvent<S extends State,E extends Event>
This class represents a state compounded of a state and an event. It is used for state expansion for the problems where actions can depend on the event that happens in a transition. Only future events that can occur from the state state should be allowed as events event.
Constructor Summary | |
---|---|
StateEvent(S state,
E event)
Builds a new state with the event information |
Method Summary | |
---|---|
int |
compareTo(State i)
The method compareTo should be implemented in order to establish a total ordering among the States. |
void |
computeMOPs(MarkovProcess<?,?> model)
This method should be implemented in order to compute all the measures of performance MOPs. |
E |
getEvent()
Gets the event. |
S |
getState()
Gets the state. |
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. |
Methods inherited from class jmarkov.basic.State |
---|
description, equals, getIndex, getMOP, getMOP, setMOP, setMOP, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StateEvent(S state, E event)
state
- stateevent
- eventMethod Detail |
---|
public S getState()
public E getEvent()
public java.lang.String label()
State
label
in interface JMarkovElement
label
in class State
JMarkovElement.description()
public int compareTo(State i)
State
compareTo
in interface java.lang.Comparable<State>
compareTo
in class State
Comparable.compareTo(Object)
public boolean isConsistent()
State
isConsistent
in class State
State.isConsistent()
public void computeMOPs(MarkovProcess<?,?> model)
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
model
- The model being solved.State.computeMOPs(jmarkov.MarkovProcess)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |