public class PHLine extends GeomProcess<examples.jmarkov.PHLineState,examples.jmarkov.PHLineEvent>
MarkovProcess.Status| Constructor and Description |
|---|
PHLine()
Used by GUI.
|
PHLine(double lambda,
PhaseVar[] dists,
int[] capacity)
This class model a series of stations with poisson arrival rate, and
Phase type service distributions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
active(examples.jmarkov.PHLineState i,
int iLevel,
examples.jmarkov.PHLineEvent e)
The user must extend this method to determine which events are
active.
|
java.lang.String |
description()
This method should be implemented by the subclass to give word
description of the model.
|
GeomRelState<examples.jmarkov.PHLineState>[] |
dests(examples.jmarkov.PHLineState i,
int absLevel,
examples.jmarkov.PHLineEvent e)
Determines the destination set of States when events e occurs.
|
int |
getCapacity(int station)
Returns the capacity of the specified station
|
int |
getNumStations()
The number of stations
|
static void |
main(java.lang.String[] a)
Main method
|
double |
rate(examples.jmarkov.PHLineState i,
int iLevel,
examples.jmarkov.PHLineState j,
int jLevel,
examples.jmarkov.PHLineEvent e)
This method calculates the rate of transition from i to j when occurs the
event e.
|
active, dests, getAMatrices, getBMatrices, getBoundaryStates, getEventRate, getExpectedLevel, getGeometrixSolver, getInitialSol, getMOPsMoment, getNumBoundaryStates, getNumTypicalStates, getRmatrix, getStateClass, getStates, getSteadyState, getSubMatrices, getTypicalStates, getVectorPi0, getVectorPi1, getVectorPi1Mod, isStable, matrixRtoArray, printAll, printStates, rate, reset, setGeometrixSolver, steadyProbabilitiesactiveTransitionsaddMOP, allToString, canGo, clearMOPs, debug, debug, debug, denseMatrixToString, denseMatrixToString, eventRatesToString, eventsRatesToString, generate, getDebugLevel, getDebugReporter, getEventClass, getEventNames, getEvents, getEventsRates, getFinalRate, getGenerator, getMaxStates, getMOPIndex, getMOPNames, getMOPNames, getMOPsAvg, getMOPsAvg, getMOPsAvg, getMOPsMoment, getMOPsMoment, getMtjGenerator, getMtjRates, getNumStates, getProgress, getRate, getRates, getRates, getStates, getStatus, getStatusMsg, getSteadyState, getSteadyStateSolver, getTransientSolver, go, goStep, hideGUI, isGenerated, killGUI, label, loadGUI, MOPsToString, MOPsToString, numMOPs, pause, printAll, printDenseMatrix, printDenseMatrix, printEventsRates, printEventsRates, printMOPs, printMOPs, printMOPs, printStates, resetResults, setDebugLevel, setDebugReporter, setMaxStates, setMOPs, setSteadyStateSolver, setTransientSolver, showGUI, statesLableMaxWidth, statesToString, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic PHLine(double lambda,
PhaseVar[] dists,
int[] capacity)
lambda - Arrival ratedists - service distributionscapacity - capacities for buffer 1, 2, ...public PHLine()
public int getNumStations()
public int getCapacity(int station)
station - station indexpublic boolean active(examples.jmarkov.PHLineState i,
int iLevel,
examples.jmarkov.PHLineEvent e)
GeomProcessactive in class GeomProcess<examples.jmarkov.PHLineState,examples.jmarkov.PHLineEvent>i - the current sub stateiLevel - Absolute level of current State i. You should
test only whether it is 0 (boundary), 1 or greater than
1. Your code should not behave any different if the
level is 2, or 3, etce - The event being tested.public GeomRelState<examples.jmarkov.PHLineState>[] dests(examples.jmarkov.PHLineState i, int absLevel, examples.jmarkov.PHLineEvent e)
GeomProcessdests in class GeomProcess<examples.jmarkov.PHLineState,examples.jmarkov.PHLineEvent>i - current State.absLevel - absolute level of current State. For QBD this is
0, 1 or 2. Anything above 2 should report the same
result.e - The Event that ocurred.public double rate(examples.jmarkov.PHLineState i,
int iLevel,
examples.jmarkov.PHLineState j,
int jLevel,
examples.jmarkov.PHLineEvent e)
rate in class GeomProcess<examples.jmarkov.PHLineState,examples.jmarkov.PHLineEvent>i - initial state.j - final state.e - event.iLevel - current state's absolute leveljLevel - destination levelpublic java.lang.String description()
MarkovProcessdescription in interface JMarkovElementdescription in class MarkovProcess<GeomState<examples.jmarkov.PHLineState>,examples.jmarkov.PHLineEvent>JMarkovElement.label()public static void main(java.lang.String[] a)
a - Not used