Package org.oristool.models.stpn
Interface MarkingExpr
- All Known Implementing Classes:
MarkingExpr.ConstantExpr
,MarkingExpr.LelloExpr
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A function from
Marking
to Double
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
static MarkingExpr
Creates a marking expression from a string.static MarkingExpr
of
(double value) Creates a constant marking expression.
-
Field Details
-
ZERO
-
ONE
-
-
Method Details
-
from
Creates a marking expression from a string.- Parameters:
expr
- input expression stringpn
- PetriNet used to extract places- Returns:
- an instance encoding the input expression
- Throws:
IllegalArgumentException
- if the variables are not places of the Petri net
-
of
Creates a constant marking expression.- Parameters:
value
- constant value- Returns:
- constant marking expression
-
evaluate
-