| edu.hws.jcm.awt.Tieable
All known Subclasses: edu.hws.jcm.awt.VariableSlider, edu.hws.jcm.awt.VariableInput, edu.hws.jcm.draw.CoordinateRect, edu.hws.jcm.awt.Animator, edu.hws.jcm.draw.LimitControlPanel,
Tieable | public interface Tieable extends java.io.Serializable(Code) | | A Tieable object has an associated serial number. The value of the serial
should increase when the value of the object changes. A Tieable can "sync" with another
Tieable, presumably by copying its serial number and other information.
A given Tieable might only be able to synchronize with other Tiebles of
certain types. If its sync() method is called with an object of the wrong
type, it should probably thrown an IllegalArguemntException.
See the "Tie" and "Controller" classes for information about how Tieable
are used.
|
Method Summary | |
public long | getSerialNumber() Get the serial number associated with this Tieable. | public void | sync(Tie tie, Tieable newest) This routine is called to tell this Tieable that the serial
numbers of the Tieables that have been added to the Tie do not
match. |
getSerialNumber | public long getSerialNumber()(Code) | | Get the serial number associated with this Tieable. If the
value of this Tieable changes, then the serial number should
increase.
|
sync | public void sync(Tie tie, Tieable newest)(Code) | | This routine is called to tell this Tieable that the serial
numbers of the Tieables that have been added to the Tie do not
match. newest has a serial number that is at least as
large as the serial number of any other Tieable in the Tie.
This Tieable should synchronize its value and serial number
with the "newest" Tieables.
(Note: So far, I haven't found any reason to use
the Tie parameter in this method! Maybe it should be removed.)
|
|
|