Uses of Class
org.oristool.math.expression.Variable
Package
Description
Provides classes for the encoding and manipulation of PDFs.
PDF supports.
Expolynomial densities.
PDF densities.
Calculus of stochastic state classes.
Petri net representation.
-
Uses of Variable in org.oristool.math
-
Uses of Variable in org.oristool.math.domain
Modifier and TypeMethodDescriptionDBMZone.Subzone.getMaxVar()
DBMZone.Subzone.getMinVar()
DBMZone.Subzone.getProjectedVar()
Modifier and TypeMethodDescriptionDBMZone.getNullDelayVariables
(Variable v) Finds the variables synchronized with the input one.DBMZone.getVariables()
Modifier and TypeMethodDescriptionvoid
DBMZone.addVariables
(Variable... vars) boolean
DBMZone.canVariableBeLowerOrEqual
(Variable var, Collection<Variable> others) Checks if a variable can be the minimum among a set of variables.boolean
DBMZone.canVariableBeLowestOrEqual
(Variable var) Checks if a variable can be the minimum in the zone.Returns the upper bound for the differenceleft-right
between two variables, which is the constantc
of a constraintleft-right <= c
.DBMZone.getCoefficient
(Variable left, Variable right) Returns the constantc
for the constraintleft-right <= c
.DBMZone.getNullDelayVariables
(Variable v) Finds the variables synchronized with the input one.void
DBMZone.imposeBound
(Variable left, Variable right, OmegaBigDecimal coefficient) Imposes an upper bound for the differenceleft-right
.void
DBMZone.imposeVarLower
(Variable var, Collection<Variable> others) Imposes the boundvar-x <= 0
for each x inothers
.void
DBMZone.imposeVarLowerAndNormalize
(Variable var, Collection<Variable> others) Imposes the boundvar-x <= 0
for each x inothers
.boolean
DBMZone.isSyncronized
(Variable x, Variable y) void
DBMZone.projectVariable
(Variable v) Discards the constraints of the input variable.void
DBMZone.projectVariables
(Variable... vars) void
DBMZone.setCoefficient
(Variable left, Variable right, OmegaBigDecimal coefficient) Sets the constantc
for the constraintsleft-right
.void
DBMZone.setNewGround
(Variable v) Discards the constraints of the input variable and uses it as the new ground.void
DBMZone.substitute
(Variable oldVar, Variable newVar) Replaces the name of a variable in all of its constraints.void
DBMZone.substitute
(Variable oldVar, Variable newVar, BigDecimal coefficient) Replaces the name of a variable and applies a constant shift.Modifier and TypeMethodDescriptionvoid
DBMZone.addVariables
(Collection<Variable> vars) Introduces new variables in this zone.boolean
DBMZone.canVariableBeLowerOrEqual
(Variable var, Collection<Variable> others) Checks if a variable can be the minimum among a set of variables.void
DBMZone.constantShift
(BigDecimal constant, Collection<Variable> variables) Applies a constant shift to a set of variables.boolean
DBMZone.contains
(Map<Variable, OmegaBigDecimal> point) Checks if this zone contains the input point.Returns the minimum value that any of the input variables can take inside this zone.void
DBMZone.imposeVarLower
(Variable var, Collection<Variable> others) Imposes the boundvar-x <= 0
for each x inothers
.void
DBMZone.imposeVarLowerAndNormalize
(Variable var, Collection<Variable> others) Imposes the boundvar-x <= 0
for each x inothers
.void
DBMZone.projectVariables
(Collection<Variable> vars) Discards the constraints of a set of variables.ModifierConstructorDescriptionSubzone
(DBMZone domain, Variable projectedVar, Variable minVar, OmegaBigDecimal minVarDelay, Variable maxVar, OmegaBigDecimal maxVarAdvance) Creates a representation of a subzone resulting from a projection.ModifierConstructorDescriptionDBMZone
(Collection<Variable> vars) Creates a zone for the given variables, without constraints. -
Uses of Variable in org.oristool.math.expression
Modifier and TypeFieldDescriptionstatic final Variable
Variable.AGE
static final Variable
Variable.TSTAR
static final Variable
Variable.X
Modifier and TypeMethodDescriptionAtomicTerm.getVariable()
Returns the variable associated with the atomic term.ExponentialTerm.getVariable()
MonomialTerm.getVariable()
Modifier and TypeMethodDescriptionExmonomial.getVariables()
Collects the variable names of the exmonomial.Expolynomial.getVariables()
Returns all the variables used in this expolynomial.Modifier and TypeMethodDescriptionint
Exmonomial.evaluate
(Variable base, Boolean sign1, Variable offset1, Boolean sign2, Variable offset2, BigDecimal constant) Replacesbase
with +/-offset1
+/-offset2
+constant
.Exmonomial.evaluate
(Variable base, Boolean sign, Variable offset, BigDecimal constant) Replacesbase
with +/-offset
+constant
.Exmonomial.evaluate
(Variable var, OmegaBigDecimal value) Replaces a variable with its value.Expolynomial.evaluate
(Variable base, boolean sign1, Variable offset1, boolean sign2, Variable offset2, BigDecimal constant) Replacesbase
with +/-offset1
+/-offset2
+constant
.Expolynomial.evaluate
(Variable base, boolean sign, Variable offset, BigDecimal constant) Replacesbase
with +/-offset
+constant
.Expolynomial.evaluate
(Variable var, OmegaBigDecimal value) Replaces a variable with its value.Computes the primitive function of this exmonomial.Exmonomial.integrate
(Variable var, OmegaBigDecimal lower, OmegaBigDecimal upper) Integrates this exmonomial over an interval.Computes the primitive function of this expolynomial.Expolynomial.integrate
(Variable var, OmegaBigDecimal lower, OmegaBigDecimal upper) Integrates this expolynomial over an interval.void
ExponentialTerm.setVariable
(Variable variable) void
MonomialTerm.setVariable
(Variable variable) Replacesbase
withbase
+offset
.void
Replacesbase
withbase
+offset
.void
AtomicTerm.substitute
(Variable oldVar, Variable newVar) Substitutes oldVar with newVar in the atomic term.void
Exmonomial.substitute
(Variable oldVar, Variable newVar) ReplacesoldVar
withnewVar
.void
Expolynomial.substitute
(Variable oldVar, Variable newVar) ReplacesoldVar
withnewVar
.void
ExponentialTerm.substitute
(Variable oldVar, Variable newVar) void
MonomialTerm.substitute
(Variable oldVar, Variable newVar) Modifier and TypeMethodDescriptionExmonomial.evaluate
(Map<Variable, OmegaBigDecimal> m) Evaluates the exmonomial.Expolynomial.evaluate
(Map<Variable, OmegaBigDecimal> m) Evaluates the expolynomial.ModifierConstructorDescriptionExponentialTerm
(Variable variable, BigDecimal lambda) Builds an instance for a given variable and rate.MonomialTerm
(Variable variable, int alpha) Builds an instance for a given variable and exponent. -
Uses of Variable in org.oristool.math.function
Modifier and TypeMethodDescriptionSynchronization.getDistributed()
StateDensityFunction.getLowestSynchronizedWrt
(Variable distributedVariable) Returns the synchronized variable with minimum delay with respect to a given distributed one.Erlang.getVariable()
Returns the variable name.EXP.getVariable()
Returns the variable of this PDF.Modifier and TypeMethodDescriptionStateDensityFunction.getContinuousVariables()
Returns the set of continuous variables.StateDensityFunction.getDeterministicValues()
Returns the set of deterministic variables and their values.StateDensityFunction.getDeterministicVariables()
Returns the set of deterministic variables.StateDensityFunction.getLowestDeterministicValue()
Returns the minimum value of deterministic variables.StateDensityFunction.getLowestDeterministicValue
(Set<Variable> detVariables) Returns the minimum value of deterministic variables among a given set.StateDensityFunction.getNullDelayVariables
(Variable v) Returns the deterministic, synchronized or distributed variables with zero delay with respect to an input one.StateDensityFunction.getSynchDelaysWrt
(Variable v) Returns all the variables synchronized with a given one (and their delays).StateDensityFunction.getSynchronizedVariables()
Returns the set of synchronized variables.PartitionedGEN.getVariables()
Returns the list of variables of this PDF.StateDensityFunction.getVariables()
Returns the set of variables (deterministic, synchronized, continuous).Modifier and TypeMethodDescriptionvoid
StateDensityFunction.addContinuousVariable
(Variable v, PartitionedFunction f) Adds a continuous variable with give PDF.void
StateDensityFunction.addDeterministicVariable
(Variable v, BigDecimal value) Adds a deterministic variable to this PDF.void
StateDensityFunction.addSynchronizedVariable
(Variable v, Variable distributed, BigDecimal delay) Adds a variable with deterministic delay with respect to an existing continuous variable.StateDensityFunction.computeMeanValue
(Variable v) Computes the mean value of a variable.StateDensityFunction.conditionAllToBound
(Variable leftVar, Set<Variable> rightVars, OmegaBigDecimal bound) Imposes the boundleftVar - rightVar <= bound
on the support for all pairs of left/right variables, keeping only subzones with nonzero measure.GEN.conditionToBound
(Variable v, OmegaBigDecimal min, OmegaBigDecimal max) Imposes the boundmin <= v <= max
and normalizes the density.PartitionedGEN.conditionToBound
(Variable v, OmegaBigDecimal min, OmegaBigDecimal max) Imposes the boundmin <= v <= max
and normalizes the density.StateDensityFunction.conditionToInterval
(Variable v, OmegaBigDecimal min, OmegaBigDecimal max) Imposes the boundx <= v <= y
on the support, keeping only subzones with nonzero measure.GEN.conditionToMax
(Variable v, OmegaBigDecimal max) Imposes the boundv <= max
and normalizes the density.PartitionedGEN.conditionToMax
(Variable v, OmegaBigDecimal max) Imposes the boundv <= max
and normalizes the density.GEN.conditionToMin
(Variable v, OmegaBigDecimal min) Imposes the boundv >= min
and normalizes the density.PartitionedGEN.conditionToMin
(Variable v, OmegaBigDecimal min) Imposes the boundv >= min
and normalizes the density.StateDensityFunction.getDeterministicValue
(Variable v) Returns the deterministic value of a given variable.static GEN
GEN.getDETInstance
(Variable v, BigDecimal value) Builds the PDF of a deterministic variable.StateDensityFunction.getLowestSynchronizedDelayWrt
(Variable distributedVariable) Returns the minimum delay of variables synchronized with the input one.StateDensityFunction.getLowestSynchronizedWrt
(Variable distributedVariable) Returns the synchronized variable with minimum delay with respect to a given distributed one.StateDensityFunction.getMarginalDensity
(Variable v) Returns the marginal density of a variable.StateDensityFunction.getMaxBound
(Variable left, Variable right) Returns the maximum upper bound on the differenceleft - right
between two variables.StateDensityFunction.getMinBound
(Variable left, Variable right) Returns the minimum upper bound on the differenceleft - right
between two variables.StateDensityFunction.getNullDelayVariables
(Variable v) Returns the deterministic, synchronized or distributed variables with zero delay with respect to an input one.StateDensityFunction.getSynchDelaysWrt
(Variable v) Returns all the variables synchronized with a given one (and their delays).StateDensityFunction.getSynchronization
(Variable v) Returns synchronization information of a variable.void
StateDensityFunction.imposeBound
(Variable leftVar, Set<Variable> rightVars, OmegaBigDecimal bound) Imposes the boundleftVar - rightVar <= bound
on the support for all pairs of left/right variables, keeping only subzones with nonzero measure.void
StateDensityFunction.imposeBound
(Variable leftVar, Variable rightVar, OmegaBigDecimal bound) Imposes the boundleftVar - rightVar <= bound
on the support, keeping only subzones with nonzero measure.void
StateDensityFunction.imposeInterval
(Variable v, OmegaBigDecimal min, OmegaBigDecimal max) Intersects the support with the input boundmin <= v <= max
on the support, keeping only subzones with nonzero measure.void
StateDensityFunction.marginalizeVariable
(Variable v) Removes a variable from this PDF.static GEN
GEN.newTruncatedExp
(Variable v, BigDecimal rate, OmegaBigDecimal eft, OmegaBigDecimal lft) Builds the PDF of a truncated EXP.Removes a variable from the PDF.void
Removes the input variable.GEN.shiftAndProject
(Variable v) Subtracts a variable from all others and removes it from the PDF.void
PartitionedGEN.shiftAndProject
(Variable var) Subtracts the input variable from all others and removes it.void
StateDensityFunction.shiftAndProject
(Variable firedVar) Subtracts a variable from all others and removes it from this PDF.void
GEN.substitute
(Variable oldVar, Variable newVar) Replaces a variable name with another.void
GEN.substitute
(Variable oldVar, Variable newVar, BigDecimal constant) Replaces a variable name with another and adds a constant.void
PartitionedGEN.substitute
(Variable oldVar, Variable newVar) Replaces one variable name with another one.void
PartitionedGEN.substitute
(Variable oldVar, Variable newVar, BigDecimal constant) Replaces one variable name with another one plus a constant.void
GEN.substituteAndShift
(Variable oldVar, Variable newVar, BigDecimal constant) Replaces the ground withnewVar - constant
andoldVar
with the ground.void
PartitionedGEN.substituteAndShift
(Variable oldVar, Variable newVar, BigDecimal constant) ReplacesoldVar
withVariable.TSTAR
and makesnewVar - constant
the new ground.void
Moves a synchronized variable into the distributed set, and the current distributed one into the synchronized set.Modifier and TypeMethodDescriptionStateDensityFunction.conditionAllToBound
(Variable leftVar, Set<Variable> rightVars, OmegaBigDecimal bound) Imposes the boundleftVar - rightVar <= bound
on the support for all pairs of left/right variables, keeping only subzones with nonzero measure.void
GEN.constantShift
(BigDecimal constant, Collection<Variable> variables) Adds a constant to a set of variables in the PDF.void
PartitionedGEN.constantShift
(BigDecimal constant, Collection<Variable> variables) Subtracts a constant from a set of variables.void
StateDensityFunction.constantShift
(BigDecimal constant, Set<Variable> progressing) Removes a constant from a set of input variables.StateDensityFunction.getLowestDeterministicValue
(Set<Variable> detVariables) Returns the minimum value of deterministic variables among a given set.StateDensityFunction.getMaxBound
(Set<Variable> leftVars, Set<Variable> rightVars) Returns the maximum upper bound on the differenceleft - right
between variables in two sets.StateDensityFunction.getMinBound
(Set<Variable> leftVars, Set<Variable> rightVars) Returns the minimum upper bound on the differenceleft - right
between variables in two sets.void
StateDensityFunction.imposeBound
(Variable leftVar, Set<Variable> rightVars, OmegaBigDecimal bound) Imposes the boundleftVar - rightVar <= bound
on the support for all pairs of left/right variables, keeping only subzones with nonzero measure.ModifierConstructorDescriptionErlang
(Variable x, int k, BigDecimal lambda) Builds the functionlambda^k x^(k-1) e^(-lambda x) / (k-1)!
over[0, +infty)
.EXP
(Variable x, BigDecimal lambda) Builds the functione^(-lambda x)
over[0, +infty)
.Synchronization
(Variable distributed, BigDecimal coefficient) -
Uses of Variable in org.oristool.models.stpn.trees
Modifier and TypeFieldDescriptionfinal Map<Variable,
Map<Variable, BigDecimal>> EnablingSyncsFeature.enablingSyncs
final Map<Variable,
Map<Variable, BigDecimal>> EnablingSyncsFeature.enablingSyncs
Modifier and TypeMethodDescriptionEnablingSyncsFeature.dets()
Returns the set of (initially) deterministic variables.StochasticStateFeature.getAgeVariables()
Returns the set of age variables.DeterministicEnablingState.getEnablingTimes()
StochasticStateFeature.getEXPRates()
StochasticStateFeature.getEXPVariables()
StochasticStateFeature.getFiringVariables()
Returns the set of general, non-age variables.Modifier and TypeMethodDescriptionvoid
StochasticStateFeature.addAgeVariable
(Variable v) Adds an age variable.void
StochasticStateFeature.addAgeVariable
(Variable v, BigDecimal value) Adds a deterministic age variable.void
StochasticStateFeature.addExpVariable
(Variable v, BigDecimal rate) Adds an exponentially-distributed variable.void
StochasticStateFeature.addTruncatedExp
(Variable v, BigDecimal rate, OmegaBigDecimal lft) Adds a truncated EXP [0, lft] to the state density.void
StochasticStateFeature.addVariable
(Variable v, PartitionedFunction f) Adds a variable with the given PDF.void
StochasticStateFeature.addVariableReduced
(Variable v, PartitionedFunction f, BigDecimal amount) Adds a variable with the input PDF, reduced of given amount.StochasticStateFeature.computeMeanValue
(Variable v) Computes the mean value of a variable.StochasticStateFeature.conditionToMinimum
(Variable v) Conditions this PDF to the event where the input variable is minimum.Returns the enabling delay of a deterministic variable with respect to a general one.StochasticStateFeature.getEXPRate
(Variable v) void
Discards all synchronization information about a variable.void
StochasticStateFeature.removeExpVariable
(Variable v) void
EnablingSyncsFeature.set
(Variable det, Variable gen, BigDecimal enablingTime) Returns the enabling delay of a determinstic variable with respect to a general one.void
StochasticStateFeature.setEXPRate
(Variable v, BigDecimal rate) Modifier and TypeMethodDescriptionStochasticStateFeature.getTotalExpRate
(Set<Variable> expVariables) Returns the sum of rates of a subset of exponential variables.ModifierConstructorDescriptionDeterministicEnablingState
(Marking marking, Map<Variable, BigDecimal> enablingTimes) Builds an instance from the given marking and map of enabling times. -
Uses of Variable in org.oristool.petrinet
Modifier and TypeMethodDescriptionTransition.newVariableInstance()
Returns the variable associated with this transition.Modifier and TypeMethodDescriptionTransition.newVariableSetInstance
(Set<Transition> transitions) Variables associated with a set of transitions.