Package org.planit.od
Interface ODData<T>
-
- Type Parameters:
T
- the type of data to be stored for each origin-destination cell
- All Known Implementing Classes:
ODDataImpl
,ODDemandMatrix
,ODMatrix
,ODRouteMatrix
,ODSkimMatrix
public interface ODData<T>
Interface defining methods for objects which store data related to origin and destination- Author:
- gman6028
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getNumberOfTravelAnalysisZones()
Returns the number of zones contained in the objectT
getValue(Zone origin, Zone destination)
Returns the value for a specified origin and destinationODDataIterator<T>
iterator()
Returns an iterator which can iterate through all the origin-destination cellsvoid
setValue(Zone origin, Zone destination, T t)
Sets the value for a specified origin and destination
-
-
-
Method Detail
-
getValue
T getValue(Zone origin, Zone destination)
Returns the value for a specified origin and destination- Parameters:
origin
- specified origindestination
- specified destination- Returns:
- value at the specified cell
-
setValue
void setValue(Zone origin, Zone destination, T t)
Sets the value for a specified origin and destination- Parameters:
origin
- specified origindestination
- specified destinationt
- value at the specified cell
-
getNumberOfTravelAnalysisZones
int getNumberOfTravelAnalysisZones()
Returns the number of zones contained in the object- Returns:
- number of zones in the object
-
iterator
ODDataIterator<T> iterator()
Returns an iterator which can iterate through all the origin-destination cells- Returns:
- iterator through all the origin-destination cells
-
-