All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.cmu.owl.ds.diagnostics.DiagnosticsBean

edu.cmu.owl.ds.diagnostics.DiagnosticsBean

public class DiagnosticsBean
This class is a front-end to the DiagnosticsSubsystem. This is a bean that is to be plugged into the UI. This is implemented as a panel. This is the class that is responsible for keeping up to date with the new modules.


Constructor Index

 o DiagnosticsBean()
This is the constructor.

Method Index

 o _notifyLightFailed(LightingFixture)
This protected method notifies all listeners that a light failed
 o _notifyLightRepaired(LightingFixture)
This protected method notifies all listeners that a light was repaired
 o _notifyLightSelected(LightingFixture)
This protected method notifies all listeners that a light (probably faulty) was selected.
 o addBeanListener(DiagBeanListener)
This method adds a listener to the DiagBeanEvent.
 o main(String[])
This main function is used as test code for the Bean.
 o removeBeanListener(DiagBeanListener)
This method removes a listener to the DiagBeanEvent.

Constructors

 o DiagnosticsBean
 public DiagnosticsBean()
This is the constructor. It instantiates the bean and places the known module inside the panel.

Methods

 o addBeanListener
 public void addBeanListener(DiagBeanListener listener)
This method adds a listener to the DiagBeanEvent. This listener must be implemented by the client.

Parameters:
listener - the listener implementation
 o removeBeanListener
 public void removeBeanListener(DiagBeanListener listener)
This method removes a listener to the DiagBeanEvent. This listener must be implemented by the client.

Parameters:
listener - the listener implementation
 o _notifyLightFailed
 protected void _notifyLightFailed(LightingFixture light)
This protected method notifies all listeners that a light failed

 o _notifyLightRepaired
 protected void _notifyLightRepaired(LightingFixture light)
This protected method notifies all listeners that a light was repaired

 o _notifyLightSelected
 protected void _notifyLightSelected(LightingFixture light)
This protected method notifies all listeners that a light (probably faulty) was selected.

 o main
 public static void main(String args[])
This main function is used as test code for the Bean.

Parameters:
args - arguments to main (none required or used in this case)

All Packages  Class Hierarchy  This Package  Previous  Next  Index