public class ScheduleModel extends DefaultTimeBarModel implements ObservationListener
Modifier and Type | Field and Description |
---|---|
protected ScheduleViewer |
viewer |
Constructor and Description |
---|
ScheduleModel(Schedule schedule) |
Modifier and Type | Method and Description |
---|---|
void |
addObservation(Observation obs) |
void |
commandingChanged(ObservationChangeEvent event)
Method called when the commanding part of an Observation has changed
|
de.jaret.util.date.JaretDate |
getMaxDate() |
de.jaret.util.date.JaretDate |
getMinDate() |
void |
metadataChanged(ObservationChangeEvent event)
Method called when the metadata of an observation has changed
|
void |
observationChanged(ObservationChangeEvent event)
Method called when an Observation changed but it is not known in which part (pointing, commanding or metadata)
|
void |
pointingChanged(ObservationChangeEvent event)
Method called when the pointing of an Observation has changed
|
void |
recualculatePtr() |
void |
scheduleChanged()
Method called when the schedule has changed globally but not a existing observation (for example if a Observation has been removed or added)
|
protected ScheduleViewer viewer
public ScheduleModel(Schedule schedule)
public void addObservation(Observation obs)
public de.jaret.util.date.JaretDate getMaxDate()
public de.jaret.util.date.JaretDate getMinDate()
public void observationChanged(ObservationChangeEvent event)
ObservationListener
observationChanged
in interface ObservationListener
public void recualculatePtr()
public void scheduleChanged()
ObservationListener
scheduleChanged
in interface ObservationListener
public void metadataChanged(ObservationChangeEvent event)
ObservationListener
metadataChanged
in interface ObservationListener
public void pointingChanged(ObservationChangeEvent event)
ObservationListener
pointingChanged
in interface ObservationListener
public void commandingChanged(ObservationChangeEvent event)
ObservationListener
commandingChanged
in interface ObservationListener