public interface ILcdSimulatorModel extends ILcdPropertyChangeSource
An ILcdSimulatorModel
defines the simulated data to be displayed by a
TLcdSimulator
in real or fast time onto different ILcdGXYView
s. Its
main responsibility is to provide its TLcdSimulator
with the ILcdModel
s
holding the simulated domain data, and to put these data in the state corresponding to a given
time of the simulation (setDate
).
Modifier and Type | Method and Description |
---|---|
Date |
getBeginDate()
Returns the begin Date of the simulation.
|
Date |
getDate()
Gets the Date corresponding to the current state of the domain objects (tracks) this
ILcdSimulatorModel contains. |
Date |
getEndDate()
Returns the end Date of the simulation.
|
ILcdModel[] |
getTrackModels()
Returns the array of
ILcdModel s holding the simulated domain data. |
void |
setDate(Date aDate)
Asks this
ILcdSimulatorModel to update the domain objects (tracks) of the
simulation it contains, in order to be in the state in which they were or should be at the
given Date. |
addPropertyChangeListener, removePropertyChangeListener
ILcdModel[] getTrackModels()
Returns the array of ILcdModel
s holding the simulated domain data. The state of
the domain objects in these models is updated when setDate
is called.
A property change event must be fired whenever the return value of this method changes.
ILcdModel
s holding the simulated domain data. This must not be
null
.setDate(java.util.Date)
void setDate(Date aDate)
ILcdSimulatorModel
to update the domain objects (tracks) of the
simulation it contains, in order to be in the state in which they were or should be at the
given Date. This state might include location, feature values, etc.
The TLcdSimulator
always calls this method on the AWT Event Dispatch Thread
Implementations of this method should respect the threading rules of LuciadLightspeed. Specifically, implementations should take a write lock on the track models they update when creating a multithreaded application.
aDate
- The Date to update to. This is never null
.getTrackModels()
,
getDate()
,
TLcdLockUtil.writeLock(Object)
Date getDate()
ILcdSimulatorModel
contains.setDate(Date)
Date getBeginDate()
Returns the begin Date of the simulation.
A property change event must be fired whenever the return value of this method changes.
null
.Date getEndDate()
Returns the end Date of the simulation.
A property change event must be fired whenever the return value of this method changes.
null
.