GP
Interface Source
- public interface Source
A source object is any object that has information that other
objects need to know.
Method Summary |
void |
Attach(Vary v)
This method should add the passed in variance to the list of objects
that should be informed of the information the source knows about. |
void |
Detach(Vary v)
This method should remove the passsed in variance from the list of
objects that get notified of the information that the source gives out. |
void |
Notify(double value)
|
Attach
public void Attach(Vary v)
- This method should add the passed in variance to the list of objects
that should be informed of the information the source knows about.
- Parameters:
v
- the variance object that wants to be notified
Detach
public void Detach(Vary v)
- This method should remove the passsed in variance from the list of
objects that get notified of the information that the source gives out.
- Parameters:
v
- the variance you want to remove from the information notification process
Notify
public void Notify(double value)