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.
-
DiagnosticsBean()
- This is the constructor.
-
_notifyLightFailed(LightingFixture)
-
This protected method notifies all listeners that a light failed
-
_notifyLightRepaired(LightingFixture)
-
This protected method notifies all listeners that a light was repaired
-
_notifyLightSelected(LightingFixture)
-
This protected method notifies all listeners that a light (probably faulty) was selected.
-
addBeanListener(DiagBeanListener)
- This method adds a listener to the DiagBeanEvent.
-
main(String[])
- This main function is used as test code for the Bean.
-
removeBeanListener(DiagBeanListener)
- This method removes a listener to the DiagBeanEvent.
DiagnosticsBean
public DiagnosticsBean()
- This is the constructor. It instantiates the bean and places the known module inside the panel.
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
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
_notifyLightFailed
protected void _notifyLightFailed(LightingFixture light)
- This protected method notifies all listeners that a light failed
_notifyLightRepaired
protected void _notifyLightRepaired(LightingFixture light)
- This protected method notifies all listeners that a light was repaired
_notifyLightSelected
protected void _notifyLightSelected(LightingFixture light)
- This protected method notifies all listeners that a light (probably faulty) was selected.
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