| java.lang.Object com.bigbross.bossa.wfnet.Edge
Edge | abstract public class Edge implements Serializable(Code) | | This class represents one edge of one transition. It may be an input or
output edge, mapping the precondition or postcondition of one transition.
author: BigBross Team |
Constructor Summary | |
protected | Edge(Place place, String expression) Creates a new edge, with the provided weight expression and
connected place. |
Method Summary | |
protected int | eval(Case caze) Evaluates an integer expression representing the edge weight
using the case attributes. | Place | getPlace() Returns the place this edge is connected to. | int | input(Case caze) Returns the weight of a precondition edge. | static Edge | newInput(Place place, String expression) Creates a new input edge, with the transition precondition
weight expression and source place. | static Edge | newOutput(Place place, String expression) Creates a new output edge, with the transition postcondition
weight expression and sink place. | int | output(Case caze) Returns the weight of a postcondition edge. | public String | toString() Returns a string with the condition expression. | int | weight(Case caze) Returns the weight of this edge. |
Edge | protected Edge(Place place, String expression)(Code) | | Creates a new edge, with the provided weight expression and
connected place. For an input edge the connected place will be a
source place, and for an output edge it will be a sink place.
Parameters: place - the connected place. Parameters: expression - the weight expression. |
eval | protected int eval(Case caze) throws EvaluationException(Code) | | Evaluates an integer expression representing the edge weight
using the case attributes.
Parameters: caze - the case that contains the attributes. The value of the expression, a positive integer. exception: EvaluationException - if an expression evaluation erroroccurs. |
getPlace | Place getPlace()(Code) | | Returns the place this edge is connected to. For an input edge the
connected place will be a source place, and for an output edge it
will be a sink place.
the place this edge is connected to. |
input | int input(Case caze) throws EvaluationException(Code) | | Returns the weight of a precondition edge.
A positive integer if this edge is a precondition,zero otherwise. exception: EvaluationException - if an expression evaluation erroroccurs. |
newInput | static Edge newInput(Place place, String expression)(Code) | | Creates a new input edge, with the transition precondition
weight expression and source place.
Parameters: place - the connected place. Parameters: expression - the weight expression. the input edge. |
newOutput | static Edge newOutput(Place place, String expression)(Code) | | Creates a new output edge, with the transition postcondition
weight expression and sink place.
Parameters: place - the connected place. Parameters: expression - the expression. the output edge. |
output | int output(Case caze) throws EvaluationException(Code) | | Returns the weight of a postcondition edge.
A positive integer if this edge is a precondition,zero otherwise. exception: EvaluationException - if an expression evaluation erroroccurs. |
toString | public String toString()(Code) | | Returns a string with the condition expression.
a string representation of this edge. |
weight | int weight(Case caze) throws EvaluationException(Code) | | Returns the weight of this edge.
A negative, zero, or a positive integer as this edge is aprecondition, no-condition, or a postcondition. exception: EvaluationException - if an expression evaluation erroroccurs. |
|
|