|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.berkeley.guir.ptk.PTK
edu.berkeley.guir.ptk.input.InputSource
edu.berkeley.guir.ptk.input.ContextInput
Gets a context event from a (running) context widget and dispatches it. The metadata of the events this class creates is ContextConstants.CONTEXT. The data IDs are dependent on the particular context widget that it is hooked up to.
| Field Summary | |
static java.lang.String |
CLASSNAME
Classname of this application |
protected java.lang.Object |
context
|
static boolean |
DEBUG
Set it to true to have more debug information |
static int |
DEFAULT_PORT
Default port to start the BaseObject on is 5555 |
static java.lang.String |
MY_ID
|
| Fields inherited from class edu.berkeley.guir.ptk.input.InputSource |
history, mds, my_id, my_ip, time_between_events |
| Fields inherited from class edu.berkeley.guir.ptk.PTK |
debug, MAX_DEBUG, MED_DEBUG, MIN_DEBUG, NO_DEBUG |
| Constructor Summary | |
ContextInput()
Constructors for non-distributed applications. |
|
ContextInput(Abstractor abs)
Constructor for non-distributed applications that abstracts on the inputs side. |
|
ContextInput(java.lang.String my_ip)
Constructors for non-distributed applications. |
|
| Method Summary | |
context.arch.comm.DataObject |
handle(java.lang.String subId,
context.arch.comm.DataObject data)
|
void |
handleIndependentReply(context.arch.comm.clients.IndependentCommunication ic)
|
static void |
main(java.lang.String[] argv)
Starts this Input with the IP address PTKConstants.DEFAULT_INPUT_IP Can instead take one command line parameter: (1) IP address where this Input is running. |
Events |
newInput()
Gets input from the data source, fills an Event with it, and returns the Event. |
| Methods inherited from class edu.berkeley.guir.ptk.input.InputSource |
addMetadata, addMetadataItem, addMyMetadataToEvent, dispatchEvent, finalize, getAbstractThenSendInputEvent, getMetadata, getMetadataItemsAsArray, getThenSendInputEvent, register, run, setMetadata, setTimeBetweenEvents, startInput |
| Methods inherited from class edu.berkeley.guir.ptk.PTK |
getMAX, getMED, getMIN, getNO, printDebug, printDebug, printError |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String MY_ID
protected java.lang.Object context
public static final int DEFAULT_PORT
public static boolean DEBUG
public static final java.lang.String CLASSNAME
| Constructor Detail |
public ContextInput()
public ContextInput(java.lang.String my_ip)
public ContextInput(Abstractor abs)
| Method Detail |
public Events newInput()
newInput in class InputSourcepublic void handleIndependentReply(context.arch.comm.clients.IndependentCommunication ic)
handleIndependentReply in interface context.arch.handler.Handler
public context.arch.comm.DataObject handle(java.lang.String subId,
context.arch.comm.DataObject data)
throws context.arch.InvalidMethodException,
context.arch.MethodException
handle in interface context.arch.handler.Handlercontext.arch.InvalidMethodException
context.arch.MethodExceptionpublic static void main(java.lang.String[] argv)
argv - IP address where this Input is running,
as a String.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||