Class DualClients
java.lang.Object
RunViewer
DualClients
- All Implemented Interfaces:
- SimpleObserver
public class DualClients
- 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(). |
protected boolean |
Initialize()
|
protected void |
InterpretPython(java.lang.String cmd)
|
static void |
main(java.lang.String[] args)
|
protected boolean |
NoInterpretingClient()
|
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 |
DualClients
public DualClients()
work
protected void work(java.lang.String[] args)
- Overrides:
work
in class RunViewer
NoInterpretingClient
protected boolean NoInterpretingClient()
Initialize
protected boolean Initialize()
InterpretPython
protected void InterpretPython(java.lang.String cmd)
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.
main
public static void main(java.lang.String[] args)