Interface IThreadedTCSolver
- All Known Implementing Classes:
MultiThreadTCSolver, SingleThreadTCSolver
public interface IThreadedTCSolver
The solver interface for tree convolution solvers.
- Author:
- Ben Homer, 2014.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionBigRational[][]Calculates per class and per station mean queue lengths using methods outlined in LamLien83 paper.Calculates per class throughputs using methods outlined in LamLien83 paper.computeG(Node node, PopulationVector pv) Compute G using postorder tree traversal.
-
Field Details
-
normalisationConstantTimer
Timer for computing normalisation constant. -
throughputTimer
Timer for computing throughputs. -
queueLengthTimer
Timer for computing mean queue lengths.
-
-
Method Details
-
computeG
Compute G using postorder tree traversal.- Parameters:
node- The current node to compute the normalisation constant G for.pv- The population vector to be used during the computation.- Returns:
- The normalisation constant G at the given node, calculated using the specified population vector.
-
calculateThroughputs
Calculates per class throughputs using methods outlined in LamLien83 paper.- Parameters:
p- The full population vector.- Returns:
- The per class throughputs as an array of BigRationals.
-
calculateMeanQueueLengths
Calculates per class and per station mean queue lengths using methods outlined in LamLien83 paper.- Parameters:
p- The full population vector.- Returns:
- The per class per station mean queue lengths as a 2D array of BigRationals.
-