context.apps.InOutBoard
Class InOutBoard
java.lang.Object
|
+--context.apps.InOutBoard.InOutBoard
- public class InOutBoard
- extends java.lang.Object
- implements Handler
Field Summary |
static int |
DEFAULT_PORT
Default port to start the BaseObject on is 5555 |
static java.lang.String |
IN
|
static int |
MAX_PEOPLE
Maximum number of different users we want to deal with |
static java.lang.String |
OUT
|
InOutRecord[] |
people
|
int |
peopleCount
|
static java.lang.String |
RFID_ID
|
static java.lang.String |
SUBSCRIBER_ID
Subscription ID for PersonPresenceSonic UPDATE callback |
java.lang.String |
VERSION_NUMBER
Version number of the In/Out Board app |
Constructor Summary |
InOutBoard(java.lang.String location,
int localport,
WidgetHandles whs,
java.lang.String rfidHost,
int rfidPort,
java.lang.String rfidID,
java.lang.String i2nxHost,
int i2nxPort,
java.lang.String i2nxID)
Constructor that creates an instance of BaseObject at the given port. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
VERSION_NUMBER
public java.lang.String VERSION_NUMBER
- Version number of the In/Out Board app
MAX_PEOPLE
public static final int MAX_PEOPLE
- Maximum number of different users we want to deal with
DEFAULT_PORT
public static final int DEFAULT_PORT
- Default port to start the BaseObject on is 5555
SUBSCRIBER_ID
public static final java.lang.String SUBSCRIBER_ID
- Subscription ID for PersonPresenceSonic UPDATE callback
RFID_ID
public static final java.lang.String RFID_ID
IN
public static final java.lang.String IN
OUT
public static final java.lang.String OUT
people
public InOutRecord[] people
peopleCount
public int peopleCount
InOutBoard
public InOutBoard(java.lang.String location,
int localport,
WidgetHandles whs,
java.lang.String rfidHost,
int rfidPort,
java.lang.String rfidID,
java.lang.String i2nxHost,
int i2nxPort,
java.lang.String i2nxID)
- Constructor that creates an instance of BaseObject at the given port. It
subscribes to the PNIOSonic and displays the board accordingly.
- Parameters:
location
- Location of the PNIOSonic widgetlocalport
- Port the app is running onwhs
- WidgetHandles to PNIOSonic widgetsrfidHost
- Host the RFID widget is running onrfidPort
- Port the RFID widget is running onrfidID
- Id of the RFID widgeti2nxHost
- Host the iButton2NameExt interpreter is running oni2nxPort
- Port the iButton2NameExt interpreter is running oni2nxID
- Id of the iButton2NameExt interpreter- See Also:
BaseObject
,
BaseObject.subscribeTo(context.arch.handler.Handler, int, java.lang.String,
java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)
,
WPNIOSonic
setTestData
public void setTestData()
userSighting
public DataObject userSighting(java.lang.String who,
java.lang.String where,
java.lang.String when,
java.lang.String status)
handle
public DataObject handle(java.lang.String callback,
DataObject data)
throws InvalidMethodException,
MethodException
- Description copied from interface: Handler
- This abstract method is used to generically handle any callbacks that a widget
may support. A context widget will call handle when a callback is triggered
in the widget and the handler has subscribed to that callback.
- Specified by:
- handle in interface Handler
- Tags copied from interface: Handler
- Parameters:
callback
- The name of the widget callback (on the subscriber side) triggereddata
- DataObject containing the data for the widget callback- Returns:
- DataObject containing any directives to the widget that created the callback
- Throws:
- InvalidMethodException - if the specified callback can't be found
- MethodException - is thrown if the specified callback can not be
executed successfully
quitApp
public void quitApp()
midnightRefresh
public void midnightRefresh()
checkOvertime
public void checkOvertime()
main
public static void main(java.lang.String[] argv)