org.primordion.xholon.xmiappsTc
Class XhTestFsm

java.lang.Object
  extended byorg.primordion.xholon.base.Xholon
      extended byorg.primordion.xholon.base.XholonWithPorts
          extended byorg.primordion.xholon.xmiappsTc.XhTestFsm
All Implemented Interfaces:
CeTestFsm, IXholon

public class XhTestFsm
extends XholonWithPorts
implements CeTestFsm

TestFsm application - Xholon Java

Author: KenWebb

Date: 17/07/2007

File: TestFsm.uml

Target: Xholon 0.6 http://www.primordion.com/Xholon

UML:

XMI: 2.1,

XSLT: 1, Apache Software Foundation, http://xml.apache.org/xalan-j


Field Summary
 char aChar
           
 int anInteger
           
static int aStaticInt
           
 java.lang.String aString
           
 int myInteger
           
static int Partner
           
 java.lang.String roleName
           
static int SIG1
           
static int SIG2
           
static int SIG3
           
 int state
           
static int TEST_SCENARIO_1
           
static int TEST_SCENARIO_2
           
static int TEST_SCENARIO_3
           
static int TEST_SCENARIO_4
           
static int TEST_SCENARIO_5
           
static int TEST_SCENARIO_6
           
 
Fields inherited from class org.primordion.xholon.base.XholonWithPorts
port
 
Fields inherited from class org.primordion.xholon.base.Xholon
DEFAULT_LEVEL, interaction, interactionsEnabled
 
Fields inherited from interface org.primordion.xholon.xmiappsTc.CeTestFsm
FsmXholonCE, includeCE, TestFsmSystemCE, TestHarnessCE, XholonClassCE
 
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
 
Constructor Summary
XhTestFsm()
           
 
Method Summary
 void act()
          Do some action during this time step.
 boolean getABooleanFalse()
           
 boolean getABooleanTrue()
           
 byte getAByte()
           
 char getAChar()
           
 double getADouble()
           
 float getAFloat()
           
 long[] getALong()
           
 int getAnInteger()
           
 short getAShort()
           
static int getAStaticInt()
           
 java.lang.String getAString()
           
 int getMyInteger()
           
 java.lang.String getRoleName()
          Get name of the role played by this Xholon within a specific context.
 int getState()
           
static int getTestScenario()
           
static int getX()
           
static int getY()
           
 void initialize()
          Initialize the tree node.
 void performActivity(int activityId, IMessage msg)
          Do the UML2 Activity identified by the activityId.
 boolean performGuard(int activityId, IMessage msg)
          Do the UML2 Activity identified by the activityId.
 void processReceivedMessage(Message msg)
          Process a received ROOM/UML2 message taken from the message queue.
 void setABooleanFalse(boolean aBooleanFalse)
           
 void setABooleanTrue(boolean aBooleanTrue)
           
 void setAByte(byte aByte)
           
 void setAChar(char aChar)
           
 void setADouble(double aDouble)
           
 void setAFloat(float aFloat)
           
 void setALong(long[] aLong)
           
 void setAnInteger(int anInteger)
           
 void setAShort(short aShort)
           
 void setAString(java.lang.String aString)
           
 void setMyInteger(int myInteger)
           
 void setRoleName(java.lang.String roleName)
          Set name of the role played by this Xholon within a specific context.
 void setState(int state)
           
static void setTestScenario(int TestScenarioArg)
           
static void setX(int xArg)
           
static void setY(int yArg)
           
 java.lang.String toString()
           
 
Methods inherited from class org.primordion.xholon.base.XholonWithPorts
configure, getMaxPorts, getPort, isActiveObject, isBound, isContainer, isPassiveObject, postConfigure, setMaxPorts, setPorts, terminate
 
Methods inherited from class org.primordion.xholon.base.Xholon
appendChild, appendChild, appendChild, cleanup, configure, createStructure, decVal, decVal, depth, draw, getChildNodes, getFirstChild, getFirstSibling, getId, getLastChild, getLastSibling, getName, getNeighbors, getNextId, getNextSibling, getNthChild, getNthSibling, getNumChildren, getNumSiblings, getParentNode, getPreviousSibling, getRootNode, getSiblings, getSizeMessageQ, getUid, getVal_boolean, getVal_byte, getVal_char, getVal_double, getVal_float, getVal_int, getVal_long, getVal_Object, getVal_short, getVal_String, getVal, getXhc, getXhcId, getXhcName, getXhType, handleNodeSelection, hasAncestor, hasChildNodes, hasChildOrSiblingNodes, hasNextSibling, hasParentNode, height, incVal, incVal, initStatics, inOrderPrint, insertAfter, insertBefore, insertFirstChild, isExternal, isInternal, isLeaf, isRootNode, performActivity, performBooleanActivity, performBooleanActivity, performDoubleActivity, performVoidActivity, postAct, postOrderPrint, postReconfigure, preAct, preConfigure, preOrderPrint, preReconfigure, print, println, processMessageQ, reconfigure, remove, removeChild, resetNextId, sendMessage, sendMessage, sendMessage, setAttributeVal, setFactory, setFirstChild, setId, setNextSibling, setParentChildLinks, setParentNode, setParentSiblingLinks, setSizeMessageQ, setUid, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVariableValue, setXhc, swapNode, treeSize, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Partner

public static final int Partner
See Also:
Constant Field Values

SIG1

public static final int SIG1
See Also:
Constant Field Values

SIG3

public static final int SIG3
See Also:
Constant Field Values

SIG2

public static final int SIG2
See Also:
Constant Field Values

roleName

public java.lang.String roleName

aString

public java.lang.String aString

aChar

public char aChar

anInteger

public int anInteger

myInteger

public int myInteger

aStaticInt

public static final int aStaticInt
See Also:
Constant Field Values

state

public int state

TEST_SCENARIO_1

public static final int TEST_SCENARIO_1
See Also:
Constant Field Values

TEST_SCENARIO_2

public static final int TEST_SCENARIO_2
See Also:
Constant Field Values

TEST_SCENARIO_3

public static final int TEST_SCENARIO_3
See Also:
Constant Field Values

TEST_SCENARIO_4

public static final int TEST_SCENARIO_4
See Also:
Constant Field Values

TEST_SCENARIO_5

public static final int TEST_SCENARIO_5
See Also:
Constant Field Values

TEST_SCENARIO_6

public static final int TEST_SCENARIO_6
See Also:
Constant Field Values
Constructor Detail

XhTestFsm

public XhTestFsm()
Method Detail

setRoleName

public void setRoleName(java.lang.String roleName)
Description copied from interface: IXholon
Set name of the role played by this Xholon within a specific context.

Specified by:
setRoleName in interface IXholon
Overrides:
setRoleName in class Xholon

getRoleName

public java.lang.String getRoleName()
Description copied from interface: IXholon
Get name of the role played by this Xholon within a specific context.

Specified by:
getRoleName in interface IXholon
Overrides:
getRoleName in class Xholon

setX

public static void setX(int xArg)

getX

public static int getX()

setY

public static void setY(int yArg)

getY

public static int getY()

setADouble

public void setADouble(double aDouble)

getADouble

public double getADouble()

setAString

public void setAString(java.lang.String aString)

getAString

public java.lang.String getAString()

setALong

public void setALong(long[] aLong)

getALong

public long[] getALong()

setABooleanTrue

public void setABooleanTrue(boolean aBooleanTrue)

getABooleanTrue

public boolean getABooleanTrue()

setAChar

public void setAChar(char aChar)

getAChar

public char getAChar()

setAByte

public void setAByte(byte aByte)

getAByte

public byte getAByte()

setAShort

public void setAShort(short aShort)

getAShort

public short getAShort()

setAFloat

public void setAFloat(float aFloat)

getAFloat

public float getAFloat()

setAnInteger

public void setAnInteger(int anInteger)

getAnInteger

public int getAnInteger()

setMyInteger

public void setMyInteger(int myInteger)

getMyInteger

public int getMyInteger()

getAStaticInt

public static int getAStaticInt()

setState

public void setState(int state)

getState

public int getState()

setABooleanFalse

public void setABooleanFalse(boolean aBooleanFalse)

getABooleanFalse

public boolean getABooleanFalse()

setTestScenario

public static void setTestScenario(int TestScenarioArg)

getTestScenario

public static int getTestScenario()

initialize

public void initialize()
Description copied from interface: IXholon
Initialize the tree node. Typically this is only used to re-initialize a node, such as when it is reused through the TreeNodeFactoryStatic.

Specified by:
initialize in interface IXholon
Overrides:
initialize in class XholonWithPorts

act

public void act()
Description copied from interface: IXholon
Do some action during this time step. Typically all nodes in the tree will do their pre-actions (optional), then all will do their actions, and then all will do their post-actions (optional).

Specified by:
act in interface IXholon
Overrides:
act in class Xholon

processReceivedMessage

public void processReceivedMessage(Message msg)
Description copied from interface: IXholon
Process a received ROOM/UML2 message taken from the message queue. All sent messages are placed in queues before they are processed.

Specified by:
processReceivedMessage in interface IXholon
Overrides:
processReceivedMessage in class Xholon

performActivity

public void performActivity(int activityId,
                            IMessage msg)
Description copied from interface: IXholon
Do the UML2 Activity identified by the activityId. This is code called during a state Transition, or while entering, exiting, or within a State.

Specified by:
performActivity in interface IXholon
Overrides:
performActivity in class Xholon

performGuard

public boolean performGuard(int activityId,
                            IMessage msg)
Description copied from interface: IXholon
Do the UML2 Activity identified by the activityId. This is code called before a Transition from a State or Choice, to check the Guard conditions.

Specified by:
performGuard in interface IXholon
Overrides:
performGuard in class Xholon

toString

public java.lang.String toString()
Overrides:
toString in class Xholon