org.primordion.xholon.xmiapps
Class XhWatch

java.lang.Object
  extended byorg.primordion.xholon.base.Xholon
      extended byorg.primordion.xholon.base.XholonWithPorts
          extended byorg.primordion.xholon.xmiapps.XhWatch
All Implemented Interfaces:
CeWatch, IXholon

public class XhWatch
extends XholonWithPorts
implements CeWatch

Watch application - Xh Java class

Note: the code generation is currently incomplete.

Author: Compaq_Administrator

Date: 23/03/2007

File: Watch.zuml

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

UML: Poseidon 3.2 or 4.2

XMI: 1.2, Thu Oct 12 18:38:39 EDT 2006, Netbeans XMI Writer

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


Field Summary
static int BEEP_CONTINUOUSLY
           
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 NOTS1
           
static int NOTS2
           
static int NOTS3
           
static int NOTS4
           
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_TIMEDATE_CNTRL
           
static int P_TIMER_TICK
           
static int S1
           
static int S2
           
static int S3
           
static int S3FOR2SECONDS
           
static int S4
           
static int SHOW_DATE
           
static int SHOW_TIME
           
static int STOP_BEEPING
           
 
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.CeWatch
AcmeWatchCE, AlarmChimeCE, AlarmChimeStatusDisplayCE, BeeperCE, BeepTestControlCE, ChronographControlCE, DayOfWeekModeDisplayCE, DisplayCE, GuiCE, GuiControlCE, includeCE, InjectButtonCE, LightCE, LightControlCE, PhysicalDisplayCE, PowerControlCE, PowerSupplyCE, StopWatchCE, StructuredClassifierCE, TickGeneratorCE, TimeDateCE, TimeDateDisplayCE, UserCE, WatchCE, WatchUserSystemCE, 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
XhWatch()
           
 
Method Summary
 void performActivity(int activityId, IMessage msg)
          Do the UML2 Activity identified by the activityId.
 
Methods inherited from class org.primordion.xholon.base.XholonWithPorts
configure, getMaxPorts, getPort, initialize, isActiveObject, isBound, isContainer, isPassiveObject, postConfigure, setMaxPorts, setPorts, terminate
 
Methods inherited from class org.primordion.xholon.base.Xholon
act, 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, getRoleName, 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, performGuard, performVoidActivity, postAct, postOrderPrint, postReconfigure, preAct, preConfigure, preOrderPrint, preReconfigure, print, println, processMessageQ, processReceivedMessage, reconfigure, remove, removeChild, resetNextId, sendMessage, sendMessage, sendMessage, setAttributeVal, setFactory, setFirstChild, setId, setNextSibling, setParentChildLinks, setParentNode, setParentSiblingLinks, setRoleName, setSizeMessageQ, setUid, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVariableValue, setXhc, swapNode, toString, treeSize, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

P_LIGHT_CMD

public static final int P_LIGHT_CMD
See Also:
Constant Field Values

P_BEEP_CMD

public static final int P_BEEP_CMD
See Also:
Constant Field Values

P_TIMEDATE_CNTRL

public static final int P_TIMEDATE_CNTRL
See Also:
Constant Field Values

P_TIMER_TICK

public static final int P_TIMER_TICK
See Also:
Constant Field Values

P_DISPLAY_CMD

public static final int P_DISPLAY_CMD
See Also:
Constant Field Values

P_BUTTON_S1

public static final int P_BUTTON_S1
See Also:
Constant Field Values

P_BUTTON_S2

public static final int P_BUTTON_S2
See Also:
Constant Field Values

P_BUTTON_S3

public static final int P_BUTTON_S3
See Also:
Constant Field Values

P_BUTTON_S4

public static final int P_BUTTON_S4
See Also:
Constant Field Values

P_GUIEVENT123

public static final int P_GUIEVENT123
See Also:
Constant Field Values

P_GUIEVENT4

public static final int P_GUIEVENT4
See Also:
Constant Field Values

P_GUIEVENT12

public static final int P_GUIEVENT12
See Also:
Constant Field Values

SHOW_DATE

public static final int SHOW_DATE
See Also:
Constant Field Values

SHOW_TIME

public static final int SHOW_TIME
See Also:
Constant Field Values

INCREMENT_MONTH

public static final int INCREMENT_MONTH
See Also:
Constant Field Values

INCREMENT_SEC

public static final int INCREMENT_SEC
See Also:
Constant Field Values

INCREMENT_MIN

public static final int INCREMENT_MIN
See Also:
Constant Field Values

INCREMENT_HOUR

public static final int INCREMENT_HOUR
See Also:
Constant Field Values

INCREMENT_DAY

public static final int INCREMENT_DAY
See Also:
Constant Field Values

INCREMENT_DATE

public static final int INCREMENT_DATE
See Also:
Constant Field Values

BEEP_CONTINUOUSLY

public static final int BEEP_CONTINUOUSLY
See Also:
Constant Field Values

STOP_BEEPING

public static final int STOP_BEEPING
See Also:
Constant Field Values

S1

public static final int S1
See Also:
Constant Field Values

S2

public static final int S2
See Also:
Constant Field Values

S3

public static final int S3
See Also:
Constant Field Values

S4

public static final int S4
See Also:
Constant Field Values

NOTS1

public static final int NOTS1
See Also:
Constant Field Values

NOTS2

public static final int NOTS2
See Also:
Constant Field Values

NOTS3

public static final int NOTS3
See Also:
Constant Field Values

NOTS4

public static final int NOTS4
See Also:
Constant Field Values

S3FOR2SECONDS

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

XhWatch

public XhWatch()
Method Detail

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