Interface ILcdSimulatorModel
- All Superinterfaces:
ILcdPropertyChangeSource
- All Known Implementing Classes:
ALcdSimulatorModel
,ALcdTimeIndexedSimulatorModel
,TLcdSimulatorModelList
,TLcdTimeFilteredSimulatorModel
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
).
Threading considerations
Simulator models should always be accessed on the AWT Event Dispatch Thread.-
Method Summary
Modifier and TypeMethodDescriptionReturns the begin Date of the simulation.getDate()
Gets the Date corresponding to the current state of the domain objects (tracks) thisILcdSimulatorModel
contains.Returns the end Date of the simulation.Returns the array ofILcdModel
s holding the simulated domain data.void
Asks thisILcdSimulatorModel
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.Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Method Details
-
getTrackModels
ILcdModel[] getTrackModels()Returns the array of
ILcdModel
s holding the simulated domain data. The state of the domain objects in these models is updated whensetDate
is called.A property change event must be fired whenever the return value of this method changes.
- Returns:
- The array of
ILcdModel
s holding the simulated domain data. This must not benull
. - See Also:
-
setDate
Asks thisILcdSimulatorModel
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 ThreadImplementations 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.
- Parameters:
aDate
- The Date to update to. This is nevernull
.- See Also:
-
getDate
Date getDate()Gets the Date corresponding to the current state of the domain objects (tracks) thisILcdSimulatorModel
contains.- Returns:
- The Date of the current state.
- See Also:
-
getBeginDate
Date getBeginDate()Returns the begin Date of the simulation.
A property change event must be fired whenever the return value of this method changes.
- Returns:
- The begin Date of the simulation. This must not be
null
.
-
getEndDate
Date getEndDate()Returns the end Date of the simulation.
A property change event must be fired whenever the return value of this method changes.
- Returns:
- The end Date of the simulation. This must not be
null
.
-