Package org.goplanit.od.skim
Class OdSkimMatrix
- java.lang.Object
-
- org.goplanit.utils.id.IdAbleImpl
-
- org.goplanit.utils.od.OdDataImpl<T>
-
- org.goplanit.utils.od.OdMatrixImpl<T,org.ojalgo.array.Array2D<T>>
-
- org.goplanit.utils.od.OdPrimitiveMatrix<Double>
-
- org.goplanit.od.skim.OdSkimMatrix
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
OdSkimMatrix.OdSkimMatrixIterator
Wrapper around primitive matrix iterator
-
Field Summary
-
Fields inherited from class org.goplanit.utils.od.OdMatrixImpl
matrixContents
-
Fields inherited from class org.goplanit.utils.od.OdDataImpl
zones
-
-
Constructor Summary
Constructors Constructor Description OdSkimMatrix(OdSkimMatrix other)
copy constructorOdSkimMatrix(OdZones zones, OdSkimSubOutputType odSkimOutputType)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OdSkimSubOutputType
getOdSkimOutputType()
Returns the type of the current OD skim matrixOdSkimMatrix.OdSkimMatrixIterator
iterator()
Returns an iterator which can iterate through all the origin-destination cells in the matrixOdSkimMatrix
shallowClone()
Create a shallow copy of this entity-
Methods inherited from class org.goplanit.utils.od.OdPrimitiveMatrix
deepClone, getValue, getValue, setValue
-
Methods inherited from class org.goplanit.utils.od.OdDataImpl
getNumberOfOdZones, getOdZones
-
Methods inherited from class org.goplanit.utils.id.IdAbleImpl
equals, generateAndSetId, generateId, getId, hashCode, setId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, getId, idEquals, idHashCode
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.goplanit.utils.od.OdData
getNumberOfOdZones
-
-
-
-
Constructor Detail
-
OdSkimMatrix
public OdSkimMatrix(OdZones zones, OdSkimSubOutputType odSkimOutputType)
Constructor- Parameters:
zones
- holding the zones in the networkodSkimOutputType
- the skim output type for this OD skim matrix
-
OdSkimMatrix
public OdSkimMatrix(OdSkimMatrix other)
copy constructor- Parameters:
other
- to copy
-
-
Method Detail
-
getOdSkimOutputType
public OdSkimSubOutputType getOdSkimOutputType()
Returns the type of the current OD skim matrix- Returns:
- the OD skim matrix type for the current OD skim matrix
-
shallowClone
public OdSkimMatrix shallowClone()
Create a shallow copy of this entity- Specified by:
shallowClone
in interfaceIdAble
- Specified by:
shallowClone
in interfaceOdData<Double>
- Specified by:
shallowClone
in classOdPrimitiveMatrix<Double>
- Returns:
- shallow copy of entity
-
iterator
public OdSkimMatrix.OdSkimMatrixIterator iterator()
Returns an iterator which can iterate through all the origin-destination cells in the matrix- Specified by:
iterator
in interfaceIterable<Double>
- Specified by:
iterator
in interfaceOdData<Double>
- Specified by:
iterator
in interfaceOdMatrix<Double,org.ojalgo.array.Array2D<Double>>
- Specified by:
iterator
in classOdPrimitiveMatrix<Double>
- Returns:
- iterator through all the origin-destination cells
-
-