context.arch.enactor
Class EnactorReference

java.lang.Object
  extended bycontext.arch.enactor.EnactorReference

public abstract class EnactorReference
extends java.lang.Object

Fully describes a widget via a set of attributes, and a set of conditions on those attributes. Any attribute conditioned on should be represented in Attributes. TODO: enforce data correspondence, possible change over to collections.

Author:
alann

Field Summary
protected  AbstractQueryItem descriptionQuery
           
protected  Enactor enactor
           
 
Constructor Summary
EnactorReference()
           
 
Method Summary
 void componentAdded(java.lang.String widgetSubId, ComponentDescription widgetState)
          Called whenever a widget satisfies the EnactorReference descriptionQuery.
 void componentRemoved(java.lang.String widgetSubId, ComponentDescription widgetState)
          Called whenever a widget no longer satisfies the descriptionQuery.
 void evaluateComponent(java.lang.String componentSubId, ComponentDescription widgetState)
          This method is called when a new batch of state data concerning a widget should be evaluated by this EnactorReference.
 AbstractQueryItem getDescriptionQuery()
           
 Enactor getEnactor()
           
 void setDescriptionQuery(AbstractQueryItem dq)
           
 void setEnactor(Enactor r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptionQuery

protected AbstractQueryItem descriptionQuery

enactor

protected Enactor enactor
Constructor Detail

EnactorReference

public EnactorReference()
Method Detail

setEnactor

public void setEnactor(Enactor r)

getEnactor

public Enactor getEnactor()

setDescriptionQuery

public void setDescriptionQuery(AbstractQueryItem dq)

getDescriptionQuery

public AbstractQueryItem getDescriptionQuery()

evaluateComponent

public void evaluateComponent(java.lang.String componentSubId,
                              ComponentDescription widgetState)
This method is called when a new batch of state data concerning a widget should be evaluated by this EnactorReference.

Parameters:
widgetState - the current state of the widget

componentAdded

public void componentAdded(java.lang.String widgetSubId,
                           ComponentDescription widgetState)
Called whenever a widget satisfies the EnactorReference descriptionQuery. A call to this method is advance notice that evaluateWidget will be called with this widgetSubId. A EnactorReference may override this method to provide more custom parameter Attributes to be set up by the Enactor, if unsure just leave the third arg null.

Parameters:
widgetSubId -

componentRemoved

public void componentRemoved(java.lang.String widgetSubId,
                             ComponentDescription widgetState)
Called whenever a widget no longer satisfies the descriptionQuery.

Parameters:
widgetSubId -