|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
things.thinger.kernel.ThingsProcess
things.thinger.kernel.basic.KernalBasic_THINGProcessWrapper
public class KernalBasic_THINGProcessWrapper
Things Process wrapper for THINGs. Act as the default expression interface.
Version History
EPG - Initial - 5 JUN 07
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class things.thinger.kernel.ThingsProcess |
---|
DEFAULT_NAME, internalResult, myPostLogger, ssi |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
KernalBasic_THINGProcessWrapper(java.lang.Class<THING> thingClass,
ExpressionInterface parentEi)
Set the THING name. |
Method Summary | |
---|---|
void |
constructThingsProcess()
Complete construction. |
void |
destructThingsProcess()
Destroy. |
void |
executeThingsProcess()
This is the entry point for the actual processing |
void |
expressResult(RESULT theResult)
Express a RESULT. |
WhoAmI |
getListenerId()
Get the ID of the listener. |
java.lang.String |
getProcessName()
Get process name. |
RESULT |
getResult()
Get the latest result. |
void |
resourceRevocation(WhoAmI resourceID)
The identified resource is in the process of being revoked. |
void |
resourceRevoked(WhoAmI resourceID)
The identified resource bas been revoked. |
Methods inherited from class things.thinger.kernel.ThingsProcess |
---|
acceptHalt, acceptPause, finalize, fix, forceFinalize, forceHalt, getCurrentState, getCurrentStateNumeric, getProcessId, getStartTime, getThingsState, init, isVerbose, release, releasePause, requestHalt, requestPause, run, screech, verboseOff, verboseOn |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KernalBasic_THINGProcessWrapper(java.lang.Class<THING> thingClass, ExpressionInterface parentEi)
thingClass
- the loaded class to use.parentEi
- the expression interface. It can be a parent. If set to null, the wrapper will provide a expression into the system log.Method Detail |
---|
public RESULT getResult() throws ThingsException
getResult
in interface ProcessInterface
getResult
in class ThingsProcess
ThingsException
- for whatever reason. It may come from the THING itself.public void executeThingsProcess() throws SystemException, java.lang.InterruptedException
executeThingsProcess
in class ThingsProcess
SystemException
java.lang.InterruptedException
public void constructThingsProcess() throws SystemException
constructThingsProcess
in class ThingsProcess
SystemException
public void destructThingsProcess() throws SystemException
destructThingsProcess
in class ThingsProcess
SystemException
public java.lang.String getProcessName()
getProcessName
in interface ProcessInterface
getProcessName
in class ThingsProcess
public void resourceRevocation(WhoAmI resourceID) throws SystemException, java.lang.InterruptedException
resourceRevocation
in interface ResourceListener
resourceID
- the ID of the resource that is being revoked.
SystemException
java.lang.InterruptedException
WhoAmI
public void resourceRevoked(WhoAmI resourceID) throws SystemException, java.lang.InterruptedException
resourceRevoked
in interface ResourceListener
resourceID
- the ID of the resource that has been revoked.
SystemException
java.lang.InterruptedException
WhoAmI
public WhoAmI getListenerId()
getListenerId
in interface ResourceListener
WhoAmI
public void expressResult(RESULT theResult) throws SystemException
expressResult
in interface ExpressionInterface
theResult
- The result to express.
SystemException
RESULT
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |