Class SAPEREExponentialTime
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.TimeDistribution
,it.unibo.alchemist.model.sapere.timedistributions.SAPERETimeDistribution
,java.io.Serializable
,java.lang.Cloneable
public final class SAPEREExponentialTime extends ExponentialTime<T> implements SAPERETimeDistribution
Allows for a Markovian event whose lambda is computed dynamically using a rate equation.
-
-
Field Summary
Fields Modifier and Type Field Description public final double
rate
-
Constructor Summary
Constructors Constructor Description SAPEREExponentialTime(String rateEquation, RandomGenerator random)
SAPEREExponentialTime(String rateEquation, Time start, RandomGenerator random)
-
Method Summary
Modifier and Type Method Description double
getRate()
boolean
isStatic()
IExpression
getRateEquation()
void
setMatches(Map<HashString, ITreeNode<out Object>> match)
-
Methods inherited from class it.unibo.alchemist.model.timedistributions.ExponentialTime
cloneOnNewNode, getRate, updateStatus
-
Methods inherited from class it.unibo.alchemist.model.timedistributions.AbstractDistribution
cloneOnNewNode, getNextOccurence, update
-
Methods inherited from class it.unibo.alchemist.model.TimeDistribution
cloneOnNewNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SAPEREExponentialTime
SAPEREExponentialTime(String rateEquation, RandomGenerator random)
- Parameters:
rateEquation
- the rate equationrandom
- the RandomGenerator
-
-
Method Detail
-
getRate
double getRate()
-
isStatic
boolean isStatic()
- Returns:
true if the equation is actually a number
-
getRateEquation
IExpression getRateEquation()
- Returns:
the rate equation
-
setMatches
void setMatches(Map<HashString, ITreeNode<out Object>> match)
- Parameters:
match
- the map of matches
-
-
-
-