|
|||||||||||
| 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.XholonWithPorts
org.primordion.xholon.xmiapps.XhElevator
Elevator application - Xholon Java
Author: KenWebb
Date: 23/05/2007
File: Elevator.mdzip
Target: Xholon 0.5 http://www.primordion.com/Xholon
UML: MagicDraw UML 11.5
XMI: 2.1, Wed May 23 12:19:43 EDT 2007
XSLT: 1, Apache Software Foundation, http://xml.apache.org/xalan-j
| 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.xmiapps.CeElevator |
AnElevatorSystemCE, ButtonCE, CallButtonCE, DispatcherCE, DoorCE, DoorControlButtonCE, ElevatorCE, ElevatorPanelCE, FloorCE, FloorSelectionButtonCE, HoistCE, includeCE, IndicatorCE, SensorCE, StructuredClassifierCE, TickGeneratorCE, UserCE, UserExternalGuiCE, UserInjectCE, UserJTreeCE, 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 | |
XhElevator()
|
|
| Method Summary | |
void |
act()
Do some action during this time step. |
int |
getArrivalFloor()
|
int |
getCurrentDirection()
|
int |
getCycleNoDest()
|
int |
getDestinationFloor()
|
java.lang.String |
getRoleName()
Get name of the role played by this Xholon within a specific context. |
static int |
getTestScenario()
|
java.lang.String |
handleNodeSelection()
Handle selection of a tree node by a user, as when a person clicks on a JTree node in the default viewer. |
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 |
setArrivalFloor(int arrivalFloor)
|
void |
setCurrentDirection(int currentDirection)
|
void |
setCycleNoDest(int cycleNoDest)
|
void |
setDestinationFloor(int destinationFloor)
|
void |
setRoleName(java.lang.String roleName)
Set name of the role played by this Xholon within a specific context. |
static void |
setTestScenario(int testScenarioArg)
|
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DoorControl3
public static final int DoorHoistControl4
public static final int ElevatorDispatch2
public static final int GuiComm
public static final int PushbuttonMessages0
public static final int Ticks0
public static final int LocationInfo0
public static final int PushbuttonMessages1
public static final int PushbuttonMessages2
public static final int Ticks5
public static final int ElevatorDispatch3
public static final int PushbuttonMessages3
public static final int PushbuttonMessages4
public static final int PushbuttonMessages5
public static final int PushbuttonMessages6
public static final int PushbuttonMessages7
public static final int LocationInfo1
public static final int SOUT_ACK
public static final int SIN_REQUESTED
public static final int SOUT_REQUEST_SATISFIED
public static final int SOUT_CLOSE_DOOR
public static final int SOUT_OPEN_DOOR
public static final int SIN_DOOR_CLOSED
public static final int SIN_DOOR_OPENED
public static final int SIN_E_N_IS_AT
public static final int SIN_B_UP_PUSHED
public static final int SOUT_B_UP_REQUEST_SATISFIED
public static final int SIN_B_DOOR_CLOSE
public static final int SOUT_MOVE_TO_FL_N
public static final int SIN_B_DOOR_OBSTRUCTED
public static final int SIN_IS_AT
public static final int SIN_B_DOWN_PUSHED
public static final int SOUT_B_FLOOR_REQUEST_SATISFIED
public static final int SOUT_B_FLOOR_ACK
public static final int SOUT_UNLOCK_DOOR
public static final int SOUT_B_UP_ACK
public static final int SIN_B_DOOR_OPEN
public static final int SOUT_LOCK_DOOR
public static final int SIN_READY
public static final int SOUT_B_DOWN_REQUEST_SATISFIED
public static final int SIN_IS_READY_NO_DEST
public static final int SIN_DOOR_LOCKED
public static final int SOUT_TICK
public static final int SOUT_B_DOWN_ACK
public static final int SOUT_MOVE_E_M_TO_FL_N
public static final int SIN_B_FLOOR_PUSHED
public static final int SIN_IS_READY_DEST
public static final int SIGNAL_ANY
public java.lang.String roleName
public static final int MaxFloors
public static final int MaxElevators
public static final int NumUpDown
public static final int NoDestinationFound
public static final int udd_UP
public static final int udd_DOWN
public static final int des_AVAILABLE
public static final int des_REQUESTED
public static final int des_BEING_SERVICED
| Constructor Detail |
public XhElevator()
| Method Detail |
public 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 setCurrentDirection(int currentDirection)
public int getCurrentDirection()
public void setDestinationFloor(int destinationFloor)
public int getDestinationFloor()
public void setArrivalFloor(int arrivalFloor)
public int getArrivalFloor()
public void setCycleNoDest(int cycleNoDest)
public int getCycleNoDest()
public static void setTestScenario(int testScenarioArg)
public static int getTestScenario()
public void initialize()
IXholon
initialize in interface IXholoninitialize in class XholonWithPortspublic void act()
IXholon
act in interface IXholonact in class Xholonpublic void processReceivedMessage(Message msg)
IXholon
processReceivedMessage in interface IXholonprocessReceivedMessage in class Xholon
public void performActivity(int activityId,
IMessage msg)
IXholon
performActivity in interface IXholonperformActivity in class Xholon
public boolean performGuard(int activityId,
IMessage msg)
IXholon
performGuard in interface IXholonperformGuard in class Xholonpublic java.lang.String handleNodeSelection()
IXholon
handleNodeSelection in interface IXholonhandleNodeSelection in class Xholonpublic java.lang.String toString()
toString in class Xholon
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||