public class BucketBuffers extends SimpleMarkovProcess<examples.jmarkov.BucketStateBuf,examples.jmarkov.BucketEventBuf>
MarkovProcess.Status| Constructor and Description |
|---|
BucketBuffers()
Used by GUI
|
BucketBuffers(double[][] mu,
int[] capBuffers)
Creates a Bucket Brigades system with the given process rates
and buffer capacities.
|
BucketBuffers(java.lang.String ratesFile,
java.lang.String buffersFile)
Creates a Bucket Brigades system with the given process rates
and buffer capacities read form the files..
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
active(examples.jmarkov.BucketStateBuf i,
examples.jmarkov.BucketEventBuf e)
This boolean function returns 1 if one event e is active (may
happen) when the system is in a state i, and 0 otherwise.
|
java.lang.String |
description()
This method should be implemented by the subclass to give word
description of the model.
|
States<examples.jmarkov.BucketStateBuf> |
dests(examples.jmarkov.BucketStateBuf i,
examples.jmarkov.BucketEventBuf e)
This function returns an array of states that are reached from
a state i after the event e has ocurred.
|
static void |
main(java.lang.String[] args)
Test program.
|
double |
rate(examples.jmarkov.BucketStateBuf i,
examples.jmarkov.BucketStateBuf j,
examples.jmarkov.BucketEventBuf e)
Now the rate at which an event occurs, given a state, is
defined.
|
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, printMOPs, printStates, printStates, reset, resetResults, setDebugLevel, setDebugReporter, setMaxStates, setMOPs, setSteadyStateSolver, setTransientSolver, showGUI, statesLableMaxWidth, statesToString, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic BucketBuffers(double[][] mu,
int[] capBuffers)
mu - Processing rates for each worker at each machine.capBuffers - Buffers capacities.public BucketBuffers(java.lang.String ratesFile,
java.lang.String buffersFile)
throws java.io.IOException
ratesFile - Rates filebuffersFile - Capacity filejava.io.IOExceptionpublic BucketBuffers()
throws java.io.IOException
java.io.IOExceptionpublic boolean active(examples.jmarkov.BucketStateBuf i,
examples.jmarkov.BucketEventBuf e)
active in class SimpleMarkovProcess<examples.jmarkov.BucketStateBuf,examples.jmarkov.BucketEventBuf>i - The current Statee - The current Event.public States<examples.jmarkov.BucketStateBuf> dests(examples.jmarkov.BucketStateBuf i, examples.jmarkov.BucketEventBuf e)
dests in class SimpleMarkovProcess<examples.jmarkov.BucketStateBuf,examples.jmarkov.BucketEventBuf>i - current State.e - The Event that ocurred.public double rate(examples.jmarkov.BucketStateBuf i,
examples.jmarkov.BucketStateBuf j,
examples.jmarkov.BucketEventBuf e)
rate in class SimpleMarkovProcess<examples.jmarkov.BucketStateBuf,examples.jmarkov.BucketEventBuf>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.BucketStateBuf,examples.jmarkov.BucketEventBuf>MarkovProcess.description()public static void main(java.lang.String[] args)
throws java.io.IOException
args - java.io.IOException