Package jline.lang.nodes
Class StatefulNode
-
- All Implemented Interfaces:
-
java.io.Serializable,jline.lang.Copyable
public class StatefulNode extends Node implements Serializable
A node that can have a state
-
-
Field Summary
Fields Modifier and Type Field Description public Matrixstatepublic MatrixstatePriorpublic final NodeAttributeattributepublic Networkmodelprotected InputSectioninputprotected OutputSectionoutputprotected ServiceSectionserverprotected DropStrategydropStrategyprotected intstatefulIdxprotected intnodeIndexprotected intstationIdxprotected Matrixstateprotected Stringname
-
Constructor Summary
Constructors Constructor Description StatefulNode(String name)
-
Method Summary
Modifier and Type Method Description MatrixgetState()Gets the current state of this node. voidsetState(Matrix state)Sets the state of this node. MatrixgetStatePrior()voidsetStatePrior(Matrix prior)voidclearState()intgetNumberOfServers()voidsetState(int state)MatrixgetStateSpace()voidsetStateSpace(Matrix space)intgetStatefulIndex()voidresetStateSpace()-
Methods inherited from class jline.lang.nodes.Node
getAttribute, getCap, getClassCap, getDropStrategy, getInput, getModel, getNodeIndex, getOutput, getOutputStrategies, getRoutingStrategy, getSections, getServer, getStatefulIdx, getStationIdx, isReferenceStation, isStateful, printSummary, reset, resetRouting, setModel, setNodeIdx, setProbRouting, setRouting, setRouting, setStationIdx -
Methods inherited from class jline.lang.Element
getName, setName -
Methods inherited from class jline.lang.Copyable
copy -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
StatefulNode
StatefulNode(String name)
-
-
Method Detail
-
setState
void setState(Matrix state)
Sets the state of this node.
- Parameters:
state- the state matrix to set
-
getStatePrior
Matrix getStatePrior()
-
setStatePrior
void setStatePrior(Matrix prior)
-
clearState
void clearState()
-
getNumberOfServers
int getNumberOfServers()
-
setState
void setState(int state)
-
getStateSpace
Matrix getStateSpace()
-
setStateSpace
void setStateSpace(Matrix space)
-
getStatefulIndex
int getStatefulIndex()
-
resetStateSpace
void resetStateSpace()
-
-
-
-