|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 IXholoninitialize in class Xholonpublic boolean isActiveSubState()
IStateMachineEntity
isActiveSubState in interface IStateMachineEntitypublic IXholon getOwningXholon()
IStateMachineEntity
getOwningXholon in interface IStateMachineEntitypublic static void setMaxPorts(int mPorts)
mPorts - Maximum number of ports.public static int getMaxPorts()
public IXholon getPort(int cnptNum)
IXholon
getPort in interface IXholongetPort in class Xholonpublic double getVal()
IXholon
getVal in interface IXholongetVal in class Xholonpublic void setRoleName(java.lang.String roleName)
IXholon
setRoleName in interface IXholonsetRoleName in class Xholonpublic java.lang.String getRoleName()
IXholon
getRoleName in interface IXholongetRoleName in class Xholonpublic void setUid(java.lang.String uid)
IXholon
setUid in interface IXholonsetUid in class Xholonpublic java.lang.String getUid()
IXholon
getUid in interface IXholongetUid in class Xholonpublic int getTrigger(int trigNum)
IStateMachineEntity
getTrigger in interface IStateMachineEntitytrigNum - The numeric id of the trigger.
public int getActivityId()
IStateMachineEntity
getActivityId in interface IStateMachineEntitypublic int getEntryActivityId()
IStateMachineEntity
getEntryActivityId in interface IStateMachineEntitypublic int getExitActivityId()
IStateMachineEntity
getExitActivityId in interface IStateMachineEntitypublic int getDoActivityId()
IStateMachineEntity
getDoActivityId in interface IStateMachineEntitypublic int getGuardActivityId()
IStateMachineEntity
getGuardActivityId in interface IStateMachineEntitypublic void setPorts()
IXholon
setPorts in interface IXholonsetPorts in class Xholonpublic void configure()
IXholon
configure in interface IXholonconfigure in class Xholonpublic void postConfigure()
IXholon
postConfigure in interface IXholonpostConfigure in class Xholonpublic static void initializeStateMachines()
public void act()
IXholon
act in interface IXholonact in class Xholonpublic void doStateMachine(Message msg)
IStateMachineEntity
doStateMachine in interface IStateMachineEntitymsg - 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 IXholonterminate in class Xholonpublic void notifyActiveSubStates()
IStateMachineEntity
notifyActiveSubStates in interface IStateMachineEntitypublic java.lang.String toString()
toString in class Xholon
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||