|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.primordion.xholon.base.Xholon org.primordion.xholon.base.StateMachineEntity
A state machine entity is any XholonClass that has to do with state machines.
IStateMachineEntity
Field Summary | |
static int |
ACTIVITYID_NONE
|
static int |
CNPT_OUTGOING1
|
static int |
CNPT_OUTGOING10
|
static int |
CNPT_OUTGOING2
|
static int |
CNPT_OUTGOING3
|
static int |
CNPT_OUTGOING4
|
static int |
CNPT_OUTGOING5
|
static int |
CNPT_OUTGOING6
|
static int |
CNPT_OUTGOING7
|
static int |
CNPT_OUTGOING8
|
static int |
CNPT_OUTGOING9
|
static int |
CNPT_TARGET
|
int |
guardActivityId
|
static int |
MAX_ACTIVE_SUBSTATES
|
static int |
MAX_TRIGGERS
|
static boolean |
PRINT_ACTIVE_SUBSTATE
|
java.lang.String |
roleName
|
java.lang.String |
uid
|
Fields inherited from class org.primordion.xholon.base.Xholon |
DEFAULT_LEVEL, interaction, interactionsEnabled |
Fields inherited from interface org.primordion.xholon.base.IXholon |
DEFAULT_SIZE_MSG_Q, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx |
Fields inherited from interface org.primordion.xholon.common.mechanism.CeBehavior |
BehaviorCE, OpaqueBehaviorCE |
Fields inherited from interface org.primordion.xholon.common.mechanism.CeStateMachineEntity |
ActivityCE, ConnectionPointReferenceCE, DeferrableTriggerCE, DoActivityCE, EntryActivityCE, ExitActivityCE, FinalStateCE, GuardCE, PseudostateCE, PseudostateChoiceCE, PseudostateDeepHistoryCE, PseudostateEntryPointCE, PseudostateExitPointCE, PseudostateForkCE, PseudostateInitialCE, PseudostateJoinCE, PseudostateJunctionCE, PseudostateShallowHistoryCE, PseudostateTerminateCE, RegionCE, StateCE, StateMachineCE, StateMachineEntityCE, TargetCE, TransitionCE, TransitionExternalCE, TransitionInternalCE, TransitionLocalCE, TriggerCE, VertexCE |
Constructor Summary | |
StateMachineEntity()
Constructor. |
Method Summary | |
void |
act()
Do some action during this time step. |
void |
configure()
Perform some action, typically once at start up; MAY be overridden. |
void |
doStateMachine(Message msg)
Execute an instance of a state machine. |
int |
getActivityId()
Return the activity ID of a transition. |
int |
getDoActivityId()
Return the do activity ID of a state. |
int |
getEntryActivityId()
Return the entry activity ID of a state. |
int |
getExitActivityId()
Return the exit activity ID of a state. |
int |
getGuardActivityId()
Return the guard activity ID of a transition. |
static int |
getMaxPorts()
Get the maximum number of ports for any xholon in the model. |
IXholon |
getOwningXholon()
Return the Xholon that owns the state machine that this IStateMachineEntity is a part of. |
IXholon |
getPort(int cnptNum)
Get the port that corresponds to this index (0 indexed). |
java.lang.String |
getRoleName()
Get name of the role played by this Xholon within a specific context. |
int |
getTrigger(int trigNum)
Return a specified trigger for a transition. |
java.lang.String |
getUid()
Get globally unique ID. |
double |
getVal()
Get the value of a "double" maintained by this xholon instance. |
void |
initialize()
Initialize the tree node. |
static void |
initializeStateMachines()
Initialize all state machines. |
boolean |
isActiveSubState()
Is this a currently active sub state of some other state or of the state machine as a whole? |
void |
notifyActiveSubStates()
Notify the existence of all currently active sub states. |
void |
postConfigure()
Perform some action, typically once at start up; MAY be overridden. |
static void |
setMaxPorts(int mPorts)
Set the maximum number of ports for any xholon in the model. |
void |
setPorts()
Set ports, by creating an array of ports. |
void |
setRoleName(java.lang.String roleName)
Set name of the role played by this Xholon within a specific context. |
void |
setUid(java.lang.String uid)
Set globally unique ID. |
void |
terminate()
Terminate a UML2 state machine, and optionally terminate the xholon that owns the state machine. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CNPT_OUTGOING1
public static final int CNPT_OUTGOING2
public static final int CNPT_OUTGOING3
public static final int CNPT_OUTGOING4
public static final int CNPT_OUTGOING5
public static final int CNPT_OUTGOING6
public static final int CNPT_OUTGOING7
public static final int CNPT_OUTGOING8
public static final int CNPT_OUTGOING9
public static final int CNPT_OUTGOING10
public static final int CNPT_TARGET
public static final int ACTIVITYID_NONE
public static int MAX_ACTIVE_SUBSTATES
public static int MAX_TRIGGERS
public static final boolean PRINT_ACTIVE_SUBSTATE
public java.lang.String roleName
public java.lang.String uid
public int guardActivityId
Constructor Detail |
public StateMachineEntity()
Method Detail |
public void initialize()
IXholon
initialize
in interface IXholon
initialize
in class Xholon
public boolean isActiveSubState()
IStateMachineEntity
isActiveSubState
in interface IStateMachineEntity
public IXholon getOwningXholon()
IStateMachineEntity
getOwningXholon
in interface IStateMachineEntity
public static void setMaxPorts(int mPorts)
mPorts
- Maximum number of ports.public static int getMaxPorts()
public IXholon getPort(int cnptNum)
IXholon
getPort
in interface IXholon
getPort
in class Xholon
public double getVal()
IXholon
getVal
in interface IXholon
getVal
in class Xholon
public void setRoleName(java.lang.String roleName)
IXholon
setRoleName
in interface IXholon
setRoleName
in class Xholon
public java.lang.String getRoleName()
IXholon
getRoleName
in interface IXholon
getRoleName
in class Xholon
public void setUid(java.lang.String uid)
IXholon
setUid
in interface IXholon
setUid
in class Xholon
public java.lang.String getUid()
IXholon
getUid
in interface IXholon
getUid
in class Xholon
public int getTrigger(int trigNum)
IStateMachineEntity
getTrigger
in interface IStateMachineEntity
trigNum
- The numeric id of the trigger.
public int getActivityId()
IStateMachineEntity
getActivityId
in interface IStateMachineEntity
public int getEntryActivityId()
IStateMachineEntity
getEntryActivityId
in interface IStateMachineEntity
public int getExitActivityId()
IStateMachineEntity
getExitActivityId
in interface IStateMachineEntity
public int getDoActivityId()
IStateMachineEntity
getDoActivityId
in interface IStateMachineEntity
public int getGuardActivityId()
IStateMachineEntity
getGuardActivityId
in interface IStateMachineEntity
public void setPorts()
IXholon
setPorts
in interface IXholon
setPorts
in class Xholon
public void configure()
IXholon
configure
in interface IXholon
configure
in class Xholon
public void postConfigure()
IXholon
postConfigure
in interface IXholon
postConfigure
in class Xholon
public static void initializeStateMachines()
public void act()
IXholon
act
in interface IXholon
act
in class Xholon
public void doStateMachine(Message msg)
IStateMachineEntity
doStateMachine
in interface IStateMachineEntity
msg
- An incoming message that contains a signal, optional data, and that
identifies the sender and receiver of the message.public void terminate()
IXholon
terminate
in interface IXholon
terminate
in class Xholon
public void notifyActiveSubStates()
IStateMachineEntity
notifyActiveSubStates
in interface IStateMachineEntity
public java.lang.String toString()
toString
in class Xholon
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |