Trull

edu.luc.cs.trull.demo.office
Class OfficeUI

java.lang.Object
  extended by edu.luc.cs.trull.EmptyComponent
      extended by edu.luc.cs.trull.TerminatingComponent
          extended by edu.luc.cs.trull.AbstractComponent
              extended by edu.luc.cs.trull.EmitComponent
                  extended by edu.luc.cs.trull.demo.office.OfficeUI
All Implemented Interfaces:
Component, EventLabels, PropertyChangeSource, Startable, Suspendable, Terminating, java.beans.PropertyChangeListener, java.util.EventListener

public class OfficeUI
extends EmitComponent
implements EventLabels

The occupant control panel for an office. It provides a target temperature setting, a light switch, and the ability to open or close the door. It also displays the actual ambient temperature, whether the heat is on, and whether the light is on.


Field Summary
private static int count
           
private  javax.swing.JCheckBox economyStatus
           
private  javax.swing.JFrame frame
           
private  javax.swing.JCheckBox heatStatus
           
private  javax.swing.JCheckBox lightStatus
           
private  javax.swing.JSlider tempStatus
           
 
Fields inherited from interface edu.luc.cs.trull.demo.office.EventLabels
AWAKE, DOORCLOSE, DOOROPEN, ECONOMYMODE, HEATOFF, HEATON, LIGHTOFF, LIGHTON, OCCUPANTMODE, REQUESTTEMP, SETTEMP, SLEEP, SWITCHOFF, SWITCHON, TEMP
 
Constructor Summary
OfficeUI(java.lang.String name)
           
 
Method Summary
 void propertyChange(java.beans.PropertyChangeEvent event)
           
 
Methods inherited from class edu.luc.cs.trull.EmitComponent
eventEmitter, eventEmitterCached, eventEmitterUncached, resume, scheduleEvent, scheduleEvent, scheduleEvent, start, stop, suspend
 
Methods inherited from class edu.luc.cs.trull.AbstractComponent
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getExternalListeners, getPropertyChangeListeners, removePropertyChangeListener
 
Methods inherited from class edu.luc.cs.trull.TerminatingComponent
fireTermination, getParent, getTermEvent, scheduleTermination, setTerminationListener
 
Methods inherited from class edu.luc.cs.trull.EmptyComponent
getTerminationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

private static int count

economyStatus

private javax.swing.JCheckBox economyStatus

frame

private javax.swing.JFrame frame

heatStatus

private javax.swing.JCheckBox heatStatus

lightStatus

private javax.swing.JCheckBox lightStatus

tempStatus

private javax.swing.JSlider tempStatus
Constructor Detail

OfficeUI

public OfficeUI(java.lang.String name)
Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class EmptyComponent

Trull

http://www.cs.luc.edu/trull/