Package org.opentrafficsim.draw.graphs
Interface FundamentalDiagram.FdLine
-
- Enclosing class:
- FundamentalDiagram
public static interface FundamentalDiagram.FdLine
Defines a line plot for a fundamental diagram.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
Returns the name of the line, as shown in the legend.double[]
getValues(FundamentalDiagram.Quantity quantity)
Return the values for the given quantity.
-
-
-
Method Detail
-
getValues
double[] getValues(FundamentalDiagram.Quantity quantity)
Return the values for the given quantity. For two quantities, this should result in a 2D fundamental diagram line.- Parameters:
quantity
- Quantity; quantity to return value for.- Returns:
- double[]; values for quantity
-
getName
java.lang.String getName()
Returns the name of the line, as shown in the legend.- Returns:
- String; name of the line, as shown in the legend
-
-