Class TryLighting
java.lang.Object
RunViewer
TryLighting
- All Implemented Interfaces:
- SimpleObserver
public class TryLighting
- extends RunViewer
- implements SimpleObserver
Method Summary |
boolean |
GetUpdate()
Returns that flag indicating whether or not Update() should be
called in response to a state object's Notify(). |
static void |
main(java.lang.String[] args)
|
protected void |
printLight(int index,
LightAttributes l)
|
protected void |
printLights(LightList ll)
|
void |
SetUpdate(boolean val)
Sets a flag in the implementing class that determines whether or
not the Update() method should be called in response to the
state object's Notify() method being called. |
void |
Update(AttributeSubject s)
This method is called when an object observed by this object
is modified and its observers are notified by the state object's
Notify() method. |
protected void |
work(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TryLighting
public TryLighting()
work
protected void work(java.lang.String[] args)
- Overrides:
work
in class RunViewer
Update
public void Update(AttributeSubject s)
- Description copied from interface:
SimpleObserver
- This method is called when an object observed by this object
is modified and its observers are notified by the state object's
Notify() method.
- Specified by:
Update
in interface SimpleObserver
- Parameters:
s
- The state object that caused the Update() method to
be called.
SetUpdate
public void SetUpdate(boolean val)
- Description copied from interface:
SimpleObserver
- Sets a flag in the implementing class that determines whether or
not the Update() method should be called in response to the
state object's Notify() method being called.
- Specified by:
SetUpdate
in interface SimpleObserver
- Parameters:
val
- true if the Update() method should be called in response to
a Notify().
GetUpdate
public boolean GetUpdate()
- Description copied from interface:
SimpleObserver
- Returns that flag indicating whether or not Update() should be
called in response to a state object's Notify().
- Specified by:
GetUpdate
in interface SimpleObserver
- Returns:
- The flag indicating whether Update() should be called.
printLights
protected void printLights(LightList ll)
printLight
protected void printLight(int index,
LightAttributes l)
main
public static void main(java.lang.String[] args)