| Package | Description |
|---|---|
| uniol.apt.adt.pn |
Representation of Petri nets.
|
| uniol.apt.analysis.invariants |
| Modifier and Type | Class and Description |
|---|---|
class |
Place
The Place class for PetriNets.
|
class |
Transition
The Transition class for PetriNets.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
PetriNet.getNode(java.lang.String id)
Retrieves the node with the given id.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<Node> |
PetriNet.getNodes() |
java.util.Set<Node> |
PetriNet.getPostsetNodes(Node node)
Retrieves a view of all nodes which have an incoming edge from the given node.
|
java.util.Set<Node> |
PetriNet.getPostsetNodes(java.lang.String id)
Retrieves a view of all nodes which have an incoming edge from the node with the given id.
|
java.util.Set<Node> |
PetriNet.getPresetNodes(Node node)
Retrieves a view of all nodes which have an outgoing edge to the given node
|
java.util.Set<Node> |
PetriNet.getPresetNodes(java.lang.String id)
Retrieves a view of all nodes which have an outgoing edge to the node identified by the id.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
PetriNet.containsNode(Node n)
Checks if this petri net contains a node.
|
Flow |
PetriNet.createFlow(Node source,
Node target)
Creates a new flow in this petri net with the given source, target and weight 1.
|
Flow |
PetriNet.createFlow(Node source,
Node target,
int weight)
Creates a new flow in this petri net with the given source, target and weight.
|
Flow |
PetriNet.getFlow(Node source,
Node target)
Returns a flow with the given source and target.
|
java.util.Set<Flow> |
PetriNet.getPostsetEdges(Node node)
Retrieves a view of all edges beginning in the given node.
|
java.util.Set<Node> |
PetriNet.getPostsetNodes(Node node)
Retrieves a view of all nodes which have an incoming edge from the given node.
|
java.util.Set<Flow> |
PetriNet.getPresetEdges(Node node)
Retrieves a view of all edges targeting the given node.
|
java.util.Set<Node> |
PetriNet.getPresetNodes(Node node)
Retrieves a view of all nodes which have an outgoing edge to the given node
|
void |
PetriNet.removeFlow(Node source,
Node target)
Removes a flow with the given source and target from this petri net.
|
void |
PetriNet.removeNode(Node node)
Removes a node from this petri net.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends Node> |
InvariantCalculator.getMapping(java.util.Set<T> nodes,
java.util.Set<java.util.List<java.lang.Integer>> invariants)
Generates for every given invariant a mapping to the given nodes.
|