public class Jackson extends SimpleMarkovProcess<examples.jmarkov.JacksonState,examples.jmarkov.JacksonEvent>
MarkovProcess.Status| Constructor and Description |
|---|
Jackson()
Default Constructor used by GUI
|
Jackson(int[] wip,
int[] servers,
double[] srvRates,
double[][] probabilities)
General constructor.
|
Jackson(int wip,
int M,
double[] srvRates)
Constructs a flow CONWIP line with M stations, single servers and the
given service rates.
|
Jackson(int wip,
int M,
double[] srvRates,
double[][] prob)
Constructs a flow CONWIP line with M stations, single servers and the
given service rates.
|
Jackson(int wip,
int M,
int[] servers,
double[] srvRates)
Constructs a flow CONWIP line with M stations, and the given snumber of
servers and service rates.
|
Jackson(java.lang.String filewip,
java.lang.String fileservers,
java.lang.String fileservicesrates,
java.lang.String fileprob)
Constructor using file names
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
active(examples.jmarkov.JacksonState i,
examples.jmarkov.JacksonEvent e)
Determine the active events.
|
java.lang.String |
description()
This method should be implemented by the subclass to give word
description of the model.
|
States<examples.jmarkov.JacksonState> |
dests(examples.jmarkov.JacksonState i,
examples.jmarkov.JacksonEvent e)
Determines the destination set of States when events e occurs.
|
double[] |
effLambdas()
Returns the throughput rate for every Station
|
int[] |
getNumServers() |
int |
getNumStations() |
static double[] |
loadDouble(java.lang.String fileName)
Reads an array of double form a file.
|
static int[] |
loadInt(java.lang.String fileName)
Load an array of int from a file.
|
static Jama.Matrix |
loadJamaMatrix(java.lang.String fileName)
Loads a JAMA matrix from a file.
|
static double[][] |
loadMatrix(java.lang.String fileName)
Load a matrix as an aary.
|
static void |
main(java.lang.String[] a)
This is just a test program.
|
int |
printMOPs(java.io.PrintWriter out,
int width,
int decimals)
Replaces the method to printo MOPs.
|
double |
rate(examples.jmarkov.JacksonState i,
examples.jmarkov.JacksonState j,
examples.jmarkov.JacksonEvent e)
Returns the transition rate from State i to State j.
|
activeTransitionsaddMOP, allToString, canGo, clearMOPs, debug, debug, debug, denseMatrixToString, denseMatrixToString, eventRatesToString, eventsRatesToString, generate, getDebugLevel, getDebugReporter, getEventClass, getEventNames, getEventRate, getEvents, getEventsRates, getFinalRate, getGenerator, getMaxStates, getMOPIndex, getMOPNames, getMOPNames, getMOPsAvg, getMOPsAvg, getMOPsAvg, getMOPsMoment, getMOPsMoment, getMOPsMoment, getMtjGenerator, getMtjRates, getNumStates, getProgress, getRate, getRates, getRates, getStateClass, getStates, getStates, getStatus, getStatusMsg, getSteadyState, getSteadyStateSolver, getTransientSolver, go, goStep, hideGUI, isGenerated, killGUI, label, loadGUI, MOPsToString, MOPsToString, numMOPs, pause, printAll, printAll, printDenseMatrix, printDenseMatrix, printEventsRates, printEventsRates, printMOPs, printMOPs, printStates, printStates, reset, resetResults, setDebugLevel, setDebugReporter, setMaxStates, setMOPs, setSteadyStateSolver, setTransientSolver, showGUI, statesLableMaxWidth, statesToString, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic Jackson(java.lang.String filewip,
java.lang.String fileservers,
java.lang.String fileservicesrates,
java.lang.String fileprob)
filewip - File with Initial WIPfileservers - File with number of serversfileservicesrates - File with service ratesfileprob - File with transfer probability ratespublic Jackson()
public Jackson(int[] wip,
int[] servers,
double[] srvRates,
double[][] probabilities)
wip - Initial wip array.servers - Number of servers per stationsrvRates - Service ratesprobabilities - Transfer probabilitiespublic Jackson(int wip,
int M,
int[] servers,
double[] srvRates)
wip - Total wipM - Number of stationsservers - Number of servers at each station.srvRates - M-dimensional array with the rates.public Jackson(int wip,
int M,
double[] srvRates)
wip - Total wipM - Number of stationssrvRates - M-dimensional array with the rates.public Jackson(int wip,
int M,
double[] srvRates,
double[][] prob)
wip - Total wipM - Number of stationssrvRates - M-dimensional array with the rates.prob - Transfer probabilities.public static Jama.Matrix loadJamaMatrix(java.lang.String fileName)
fileName - The name fo the file.public static int[] loadInt(java.lang.String fileName)
fileName - The name fo the file.public static double[] loadDouble(java.lang.String fileName)
fileName - The name fo the file.public static double[][] loadMatrix(java.lang.String fileName)
fileName - The name fo the file.public boolean active(examples.jmarkov.JacksonState i,
examples.jmarkov.JacksonEvent e)
active in class SimpleMarkovProcess<examples.jmarkov.JacksonState,examples.jmarkov.JacksonEvent>i - The current Statee - The current Event.public States<examples.jmarkov.JacksonState> dests(examples.jmarkov.JacksonState i, examples.jmarkov.JacksonEvent e)
SimpleMarkovProcessdests in class SimpleMarkovProcess<examples.jmarkov.JacksonState,examples.jmarkov.JacksonEvent>i - current State.e - The Event that ocurred.public double rate(examples.jmarkov.JacksonState i,
examples.jmarkov.JacksonState j,
examples.jmarkov.JacksonEvent e)
rate in class SimpleMarkovProcess<examples.jmarkov.JacksonState,examples.jmarkov.JacksonEvent>i - Current statej - Destination Statee - The occuring eventSimpleMarkovProcess.dests(State, Event)public java.lang.String description()
MarkovProcessdescription in interface JMarkovElementdescription in class MarkovProcess<examples.jmarkov.JacksonState,examples.jmarkov.JacksonEvent>JMarkovElement.label()public double[] effLambdas()
throws NotUnichainException
NotUnichainExceptionpublic int printMOPs(java.io.PrintWriter out,
int width,
int decimals)
toString(), which is also used in the MOP's tab in the
GUI.printMOPs in class MarkovProcess<examples.jmarkov.JacksonState,examples.jmarkov.JacksonEvent>out - The printer where the MOPS will be printed.width - the columns widthdecimals - the number of decimals to use.MarkovProcess.printMOPs(PrintWriter),
MarkovProcess.printMOPs(PrintWriter, int, int)public static void main(java.lang.String[] a)
a - If given these are the files to read the data from.public int[] getNumServers()
public int getNumStations()