edu.berkeley.io.context.home
Class TemperatureEnactor

java.lang.Object
  extended bycontext.arch.enactor.Enactor
      extended byedu.berkeley.io.context.home.TemperatureEnactor

public class TemperatureEnactor
extends Enactor

This is a temperature rule object that monitors all temperature available temperature widgets and services, and controls the heating and cooling of a temperature service until is within some distance from a target.

Author:
alann

Field Summary
 
Fields inherited from class context.arch.enactor.Enactor
enactorListener, subscriptionManager
 
Constructor Summary
TemperatureEnactor()
           
 
Method Summary
protected  void fireComponentAdded(EnactorListener listener, EnactorReference rwr, java.lang.String widgetSubId, ComponentDescription cd, Attributes paramAtts)
           
protected  void fireParameterValueChanged(EnactorListener listener, EnactorParameter parameter, Attributes paramAtts, java.lang.Object value)
          Override to be notified when parameters change, particularly temperatureTarget.
 float getDefaultTarget()
           
static void main(java.lang.String[] args)
           
 void setDefaultTarget(float f)
           
 
Methods inherited from class context.arch.enactor.Enactor
addEnactorParameter, addEnactorReference, addListener, fireComponentAdded, fireComponentEvaluated, fireComponentEvaluated, fireComponentRemoved, fireComponentRemoved, fireParameterValueChanged, getAtt, getEnactorParameter, getEnactorParameters, getEnactorReferences, getSubscriptionManager, removeEnactorParameter, removeEnactorReference, removeListener, setSubscriptionManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemperatureEnactor

public TemperatureEnactor()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

fireParameterValueChanged

protected void fireParameterValueChanged(EnactorListener listener,
                                         EnactorParameter parameter,
                                         Attributes paramAtts,
                                         java.lang.Object value)
Override to be notified when parameters change, particularly temperatureTarget.

Overrides:
fireParameterValueChanged in class Enactor
See Also:
context.arch.situation.Enactor#fireParameterValueChanged(RuleParameter, Attributes, Object)

fireComponentAdded

protected void fireComponentAdded(EnactorListener listener,
                                  EnactorReference rwr,
                                  java.lang.String widgetSubId,
                                  ComponentDescription cd,
                                  Attributes paramAtts)
Overrides:
fireComponentAdded in class Enactor

setDefaultTarget

public void setDefaultTarget(float f)

getDefaultTarget

public float getDefaultTarget()