Package org.opentrafficsim.draw.graphs
Class FundamentalDiagram.AbstractFdSource
java.lang.Object
org.opentrafficsim.draw.graphs.FundamentalDiagram.AbstractFdSource
- All Implemented Interfaces:
FundamentalDiagram.FdSource
- Enclosing class:
- FundamentalDiagram
abstract static class FundamentalDiagram.AbstractFdSource
extends Object
implements FundamentalDiagram.FdSource
Abstract implementation to link to fundamental diagrams.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFundamentalDiagram
(FundamentalDiagram fundamentalDiagram) Add fundamental diagram.void
Clears all connected fundamental diagrams.org.djutils.immutablecollections.ImmutableSet<FundamentalDiagram>
Returns the diagrams.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opentrafficsim.draw.graphs.FundamentalDiagram.FdSource
getAggregationPeriod, getDelay, getDensity, getFlow, getItemCount, getName, getNumberOfSeries, getPossibleAggregationPeriods, getPossibleUpdateFrequencies, getSpeed, getUpdateInterval, increaseTime, isAggregate, recalculate, setAggregateName, setAggregationPeriod, setUpdateInterval
-
Constructor Details
-
AbstractFdSource
AbstractFdSource()
-
-
Method Details
-
addFundamentalDiagram
Add fundamental diagram. Used to notify diagrams when data has changed.- Specified by:
addFundamentalDiagram
in interfaceFundamentalDiagram.FdSource
- Parameters:
fundamentalDiagram
- FundamentalDiagram; fundamental diagram
-
clearFundamentalDiagrams
public void clearFundamentalDiagrams()Clears all connected fundamental diagrams.- Specified by:
clearFundamentalDiagrams
in interfaceFundamentalDiagram.FdSource
-
getDiagrams
Returns the diagrams.- Specified by:
getDiagrams
in interfaceFundamentalDiagram.FdSource
- Returns:
- ImmutableSet<FundamentalDiagram> diagrams
-