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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondoublestatic MarkingExprCreates a marking expression from a string.static MarkingExprof(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
-