context.arch.enactor
Class Enactor
java.lang.Object
context.arch.enactor.Enactor
- Direct Known Subclasses:
- InstallationEnactor, LightEnactor, PresenceEnactor, TemperatureEnactor, VisitorDisplayEnactor
- public abstract class Enactor
- extends java.lang.Object
The Enactor component encapsulates application logic and simplifies
the acquisition of context data. Use it by making subclasses that
define their own EnactorReferences and EnactorParameters. To be useful,
an Enactor should have an EnactorSubscriptionManager set upon it.
- Author:
- alann
Method Summary |
protected boolean |
addEnactorParameter(EnactorParameter ep)
|
protected boolean |
addEnactorReference(EnactorReference er)
|
void |
addListener(EnactorListener sml)
|
protected void |
fireComponentAdded(EnactorListener listener,
EnactorReference rwr,
java.lang.String widgetSubId,
ComponentDescription cd,
Attributes paramAtts)
|
protected void |
fireComponentAdded(EnactorReference rwr,
java.lang.String widgetSubId,
ComponentDescription cd,
Attributes paramAtts)
|
protected void |
fireComponentEvaluated(EnactorListener listener,
EnactorReference rwr,
ComponentDescription cd)
|
protected void |
fireComponentEvaluated(EnactorReference rwr,
ComponentDescription cd)
|
protected void |
fireComponentRemoved(EnactorListener listener,
EnactorReference rwr,
java.lang.String widgetSubId,
ComponentDescription cd,
Attributes paramAtts)
|
protected void |
fireComponentRemoved(EnactorReference rwr,
java.lang.String widgetSubId,
ComponentDescription cd,
Attributes paramAtts)
|
protected void |
fireParameterValueChanged(EnactorListener listener,
EnactorParameter parameter,
Attributes paramAtts,
java.lang.Object value)
|
protected void |
fireParameterValueChanged(EnactorParameter parameter,
Attributes paramAtts,
java.lang.Object value)
|
protected java.lang.Object |
getAtt(java.lang.String key,
java.util.Iterator attributeIterator)
convenience method until we fix ComponentDescriptions to do this right... |
EnactorParameter |
getEnactorParameter(java.lang.String name)
|
java.util.Iterator |
getEnactorParameters()
|
java.util.Iterator |
getEnactorReferences()
|
EnactorSubscriptionManager |
getSubscriptionManager()
|
protected boolean |
removeEnactorParameter(EnactorParameter ep)
|
protected boolean |
removeEnactorReference(EnactorReference er)
|
void |
removeListener(EnactorListener sml)
|
protected void |
setSubscriptionManager(EnactorSubscriptionManager sm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
subscriptionManager
protected EnactorSubscriptionManager subscriptionManager
enactorListener
protected EnactorListener enactorListener
Enactor
public Enactor()
setSubscriptionManager
protected void setSubscriptionManager(EnactorSubscriptionManager sm)
getSubscriptionManager
public EnactorSubscriptionManager getSubscriptionManager()
addEnactorParameter
protected boolean addEnactorParameter(EnactorParameter ep)
removeEnactorParameter
protected boolean removeEnactorParameter(EnactorParameter ep)
getEnactorParameter
public EnactorParameter getEnactorParameter(java.lang.String name)
getEnactorParameters
public java.util.Iterator getEnactorParameters()
addEnactorReference
protected boolean addEnactorReference(EnactorReference er)
removeEnactorReference
protected boolean removeEnactorReference(EnactorReference er)
getEnactorReferences
public java.util.Iterator getEnactorReferences()
addListener
public void addListener(EnactorListener sml)
removeListener
public void removeListener(EnactorListener sml)
fireComponentEvaluated
protected final void fireComponentEvaluated(EnactorReference rwr,
ComponentDescription cd)
fireComponentAdded
protected final void fireComponentAdded(EnactorReference rwr,
java.lang.String widgetSubId,
ComponentDescription cd,
Attributes paramAtts)
fireComponentRemoved
protected final void fireComponentRemoved(EnactorReference rwr,
java.lang.String widgetSubId,
ComponentDescription cd,
Attributes paramAtts)
fireParameterValueChanged
protected final void fireParameterValueChanged(EnactorParameter parameter,
Attributes paramAtts,
java.lang.Object value)
fireComponentEvaluated
protected void fireComponentEvaluated(EnactorListener listener,
EnactorReference rwr,
ComponentDescription cd)
fireComponentAdded
protected void fireComponentAdded(EnactorListener listener,
EnactorReference rwr,
java.lang.String widgetSubId,
ComponentDescription cd,
Attributes paramAtts)
fireComponentRemoved
protected void fireComponentRemoved(EnactorListener listener,
EnactorReference rwr,
java.lang.String widgetSubId,
ComponentDescription cd,
Attributes paramAtts)
fireParameterValueChanged
protected void fireParameterValueChanged(EnactorListener listener,
EnactorParameter parameter,
Attributes paramAtts,
java.lang.Object value)
getAtt
protected java.lang.Object getAtt(java.lang.String key,
java.util.Iterator attributeIterator)
- convenience method until we fix ComponentDescriptions to do this right...
TODO: modify CTK componentDescriptions so that we can access Attributes sanely