Class NetworkLoadingFactorData
- java.lang.Object
-
- org.goplanit.assignment.ltm.sltm.LinkSegmentData
-
- org.goplanit.assignment.ltm.sltm.loading.NetworkLoadingFactorData
-
public class NetworkLoadingFactorData extends LinkSegmentData
Track the sLTM variables representing the various factors used:- flow acceptance factors (alphas)
- flow capacity factors (betas)
- storage capacity factors (gammas)
- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description NetworkLoadingFactorData(int numberOfLinkSegments)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
getCurrentFlowAcceptanceFactors()
Access to the current flow acceptance factorsdouble[]
getCurrentFlowCapacityFactors()
Access to the current flow capacity factorsdouble[]
getCurrentStorageCapacityFactors()
Access to the current storage capacity factorsdouble[]
getNextFlowAcceptanceFactors()
Access to the next flow acceptance factorsdouble[]
getNextFlowCapacityFactors()
Access to the next flow capacity factorsdouble[]
getNextStorageCapacityFactors()
Access to the next storage capacity factorsvoid
reset()
Reset to initial statevoid
resetCurrentFlowAcceptanceFactors()
Reset current flow acceptance factors (alphas)void
resetCurrentFlowCapacityFactors()
Reset current flow capacity factors (betas)void
resetCurrentStorageCapacityFactors()
Reset current storage capacity factors (gammas)void
resetNextFlowAcceptanceFactors()
Reset the flow acceptance factors for the coming iteration (alphas)void
resetNextFlowCapacityFactors()
Reset the flow capacity factors for the coming iteration (betas)void
resetNextStorageCapacityFactors()
Reset the storage capacity factors for the coming iteration (gammas)void
swapCurrentAndNextFlowAcceptanceFactors()
equate the current flow acceptance factors to the next (reference update, no copy)void
swapCurrentAndNextFlowCapacityFactors()
equate the current flow capacity factors to the next (reference update, no copy)void
swapCurrentAndNextStorageCapacityFactors()
equate the current storage capacity factors to the next (reference update, no copy)-
Methods inherited from class org.goplanit.assignment.ltm.sltm.LinkSegmentData
copyTo, createinitialStateLinkSegmentDoubleArray, limitFlowsToCapacity, swap
-
-
-
-
Method Detail
-
resetNextFlowAcceptanceFactors
public void resetNextFlowAcceptanceFactors()
Reset the flow acceptance factors for the coming iteration (alphas)
-
resetCurrentFlowAcceptanceFactors
public void resetCurrentFlowAcceptanceFactors()
Reset current flow acceptance factors (alphas)
-
resetNextFlowCapacityFactors
public void resetNextFlowCapacityFactors()
Reset the flow capacity factors for the coming iteration (betas)
-
resetCurrentFlowCapacityFactors
public void resetCurrentFlowCapacityFactors()
Reset current flow capacity factors (betas)
-
resetNextStorageCapacityFactors
public void resetNextStorageCapacityFactors()
Reset the storage capacity factors for the coming iteration (gammas)
-
resetCurrentStorageCapacityFactors
public void resetCurrentStorageCapacityFactors()
Reset current storage capacity factors (gammas)
-
getCurrentFlowAcceptanceFactors
public double[] getCurrentFlowAcceptanceFactors()
Access to the current flow acceptance factors- Returns:
- flow acceptance factors
-
getCurrentFlowCapacityFactors
public double[] getCurrentFlowCapacityFactors()
Access to the current flow capacity factors- Returns:
- flow capacity factors
-
getCurrentStorageCapacityFactors
public double[] getCurrentStorageCapacityFactors()
Access to the current storage capacity factors- Returns:
- storage capacity factors
-
getNextStorageCapacityFactors
public double[] getNextStorageCapacityFactors()
Access to the next storage capacity factors- Returns:
- storage capacity factors
-
getNextFlowAcceptanceFactors
public double[] getNextFlowAcceptanceFactors()
Access to the next flow acceptance factors- Returns:
- flow acceptance factors
-
getNextFlowCapacityFactors
public double[] getNextFlowCapacityFactors()
Access to the next flow capacity factors- Returns:
- flow capacity factors
-
swapCurrentAndNextStorageCapacityFactors
public void swapCurrentAndNextStorageCapacityFactors()
equate the current storage capacity factors to the next (reference update, no copy)
-
swapCurrentAndNextFlowCapacityFactors
public void swapCurrentAndNextFlowCapacityFactors()
equate the current flow capacity factors to the next (reference update, no copy)
-
swapCurrentAndNextFlowAcceptanceFactors
public void swapCurrentAndNextFlowAcceptanceFactors()
equate the current flow acceptance factors to the next (reference update, no copy)
-
reset
public void reset()
Reset to initial state
-
-