|
|||||||||||
| 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.samples.XhWatch
Digital Watch. This is the detailed behavior of a sample Xholon application.
| Field Summary | |
static int |
BEEP_CONTINUOUSLY
|
static int |
BEEP_ONCE
|
static int |
BUTTON_S1_HELD
|
static int |
BUTTON_S1_PRESSED
|
static int |
BUTTON_S1_RELEASED
|
static int |
BUTTON_S2_HELD
|
static int |
BUTTON_S2_PRESSED
|
static int |
BUTTON_S2_RELEASED
|
static int |
BUTTON_S3_HELD
|
static int |
BUTTON_S3_PRESSED
|
static int |
BUTTON_S3_RELEASED
|
static int |
BUTTON_S4_HELD
|
static int |
BUTTON_S4_PRESSED
|
static int |
BUTTON_S4_RELEASED
|
static int |
DISPLAY_ALARM_STATUS
|
static int |
DISPLAY_CHIME_STATUS
|
static int |
DISPLAY_DATE
|
static int |
DISPLAY_DAYOFWEEK
|
static int |
DISPLAY_MODE
|
static int |
DISPLAY_TIME
|
static int |
INCREMENT_DATE
|
static int |
INCREMENT_DAY
|
static int |
INCREMENT_HOUR
|
static int |
INCREMENT_MIN
|
static int |
INCREMENT_MONTH
|
static int |
INCREMENT_SEC
|
static int |
LIGHT_OFF
|
static int |
LIGHT_ON
|
static int |
NOTS1
|
static int |
NOTS2
|
static int |
NOTS3
|
static int |
NOTS4
|
static int |
P_ALARMCHIME_CNTRL
|
static int |
P_BEEP_CMD
|
static int |
P_BUTTON_S1
|
static int |
P_BUTTON_S2
|
static int |
P_BUTTON_S3
|
static int |
P_BUTTON_S4
|
static int |
P_DISPLAY_CMD
|
static int |
P_GUIEVENT12
|
static int |
P_GUIEVENT123
|
static int |
P_GUIEVENT4
|
static int |
P_LIGHT_CMD
|
static int |
P_STOPWATCH_CNTRL
|
static int |
P_TIMEDATE_CNTRL
|
static int |
P_TIMER_TICK
|
java.lang.String |
roleName
|
static int |
S1
|
static int |
S2
|
static int |
S3
|
static int |
S3FOR2SECONDS
|
static int |
S4
|
static int |
SHOW_DATE
|
static int |
SHOW_TIME
|
int |
state
|
static int |
STOP_BEEPING
|
static int |
TICK
|
| 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.base.IXholon |
DEFAULT_SIZE_MSG_Q, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx |
| Constructor Summary | |
XhWatch()
Constructor. |
|
| Method Summary | |
void |
act()
Do some action during this time step. |
java.lang.String |
getRoleName()
Get name of the role played by this Xholon within a specific context. |
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. |
void |
processReceivedMessage(Message msg)
Process a received ROOM/UML2 message taken from the message queue. |
void |
setRoleName(java.lang.String roleName)
Set name of the role played by this Xholon within a specific context. |
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 P_BUTTON_S1
public static final int P_BUTTON_S2
public static final int P_BUTTON_S3
public static final int P_BUTTON_S4
public static final int P_GUIEVENT123
public static final int P_GUIEVENT4
public static final int P_GUIEVENT12
public static final int P_TIMEDATE_CNTRL
public static final int P_ALARMCHIME_CNTRL
public static final int P_STOPWATCH_CNTRL
public static final int P_TIMER_TICK
public static final int P_DISPLAY_CMD
public static final int P_LIGHT_CMD
public static final int P_BEEP_CMD
public static final int BUTTON_S1_PRESSED
public static final int BUTTON_S1_RELEASED
public static final int BUTTON_S1_HELD
public static final int BUTTON_S2_PRESSED
public static final int BUTTON_S2_RELEASED
public static final int BUTTON_S2_HELD
public static final int BUTTON_S3_PRESSED
public static final int BUTTON_S3_RELEASED
public static final int BUTTON_S3_HELD
public static final int BUTTON_S4_PRESSED
public static final int BUTTON_S4_RELEASED
public static final int BUTTON_S4_HELD
public static final int S1
public static final int S2
public static final int S3
public static final int S4
public static final int NOTS1
public static final int NOTS2
public static final int NOTS3
public static final int NOTS4
public static final int S3FOR2SECONDS
public static final int INCREMENT_SEC
public static final int INCREMENT_MIN
public static final int INCREMENT_HOUR
public static final int INCREMENT_MONTH
public static final int INCREMENT_DAY
public static final int INCREMENT_DATE
public static final int SHOW_TIME
public static final int SHOW_DATE
public static final int TICK
public static final int DISPLAY_TIME
public static final int DISPLAY_DATE
public static final int DISPLAY_ALARM_STATUS
public static final int DISPLAY_CHIME_STATUS
public static final int DISPLAY_DAYOFWEEK
public static final int DISPLAY_MODE
public static final int LIGHT_ON
public static final int LIGHT_OFF
public static final int BEEP_CONTINUOUSLY
public static final int BEEP_ONCE
public static final int STOP_BEEPING
public int state
public java.lang.String roleName
| Constructor Detail |
public XhWatch()
| Method Detail |
public void initialize()
IXholon
initialize in interface IXholoninitialize in class XholonWithPortspublic 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 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 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 | ||||||||||