|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.isam.exehda.services.ctxm.ContextChain | +--org.isam.exehda.services.ctxm.SingleSensorChainDouble
A context chain that takes as input double
data from a single sensor and
translates it into abstract context states according to defined ranges.
Constructor Summary | |
SingleSensorChainDouble(java.lang.String ctxdef)
|
Method Summary | |
static ContextChain |
getInstance(java.lang.String ctxDef)
Creates a new ContextChain. |
static void |
setChainFactory(ContextChainFactory f)
Installs a new chain factory. |
ContextEvent |
updateChain(Environment env,
long tsNow)
Notifies the chain that the current environment has changed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SingleSensorChainDouble(java.lang.String ctxdef)
Method Detail |
public ContextEvent updateChain(Environment env, long tsNow)
ContextChain
updateChain
in class ContextChain
env
- an Environment
valuetsNow
- a time stamp to be used with the generated context event
ContextEvent
value or null if the state of the context
element has not changed.public static void setChainFactory(ContextChainFactory f)
f
- a non-null ContextChainFactory
valuepublic static ContextChain getInstance(java.lang.String ctxDef)
createChain()
in the currently
configured factory.
ctxDef
- a String
value
ContextChain
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |