|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface THINGInterface
A thing interface.
This can allow non-THING objects access to a THING's services. It's a bad idea for a non-THING to do anything from a THING
that is not in this interface.
Version History
EPG - Initial - 26 FEB 07 EPG - Add RUN_TIME - 10 MAR 08
| Method Summary | |
|---|---|
RESULT |
CALL(java.lang.String thingName)
Call a THING. |
void |
EXPRESS(RESULT theResult)
Express a result. |
Universe |
GET_UNIVERSE(java.lang.String name)
Get a universe by the local name. |
MODULE |
INSTANCE(java.lang.String moduleName)
Instantiate a module. |
long |
RUN_TIME()
Get how long the thing has been running in milliseconds. |
| Methods inherited from interface things.thing.BASEInterface |
|---|
GET_LOGGER |
| Method Detail |
|---|
MODULE INSTANCE(java.lang.String moduleName)
throws UserException,
java.lang.InterruptedException
moduleName - the name of the module. This must match the class name for the MODULE or it will not be found and run.
UserException - or InterruptedException. It's important to let InterruptedException out.
java.lang.InterruptedException
RESULT CALL(java.lang.String thingName)
throws UserException,
java.lang.InterruptedException
thingName - the name of the thing. This must match the class name for the THING or it will not be found and run.
UserException - or InterruptedException. It's important to let InterruptedException out.
java.lang.InterruptedException
void EXPRESS(RESULT theResult)
throws UserException
UserException
Universe GET_UNIVERSE(java.lang.String name)
throws UserException
name - the local name (as registered)
UserExceptionUniverse
long RUN_TIME()
throws UserException
UserException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||