Interface GraphModel<D extends GraphData>
- All Known Subinterfaces:
GraphGroupModel,HoseGraphModel,IncidentGraphModel,LineGraphModel
- All Known Implementing Classes:
AbstractGraphGroupModel,AbstractHoseGraphModel,AbstractIncidentGraphModel,AbstractLineGraphModel,AggregatingLineGraphModel,DelegatingHoseModel,PartitioningTimestampsLineGraphModel
public interface GraphModel<D extends GraphData>
-
Method Details
-
onDataChanged
-
getDomainX
Interval getDomainX() -
getData
D getData(TimePartitioning zoomLevel, ZoneId zoneId, Interval neededInterval, Interval displayedInterval) Retrieves graph data (GraphData) for the specifiedzoomLeveland {cod@ neededInterval}.The model MAY choose return more data than needed, covering a larger interval than requested.
However, the result MUST at least coverneededInterval!
If the model delegates to multiple sub-models for different graphs, its aggregatedGraphDataobject should use the intersection of the sub-model'sGraphData.getInterval()as its ownGraphData.getInterval().- Parameters:
zoomLevel- the requested zoom levelzoneId- the zoneId to apply when partitioning over timeneededInterval- the time interval requested by the clientdisplayedInterval- the time interval displayed by the client- Returns:
- graph data
-