public interface IPetriNet<F extends IFlow<N>,N extends INode,P extends IPlace,T extends ITransition> extends IDirectedGraph<F,N>
| Modifier and Type | Method and Description |
|---|---|
F |
addFlow(N from,
N to)
Add flow to this net.
|
F |
addFlow(P place,
T transition)
Add flow to this net.
|
F |
addFlow(T transition,
P place)
Add flow to this net.
|
N |
addNode(N node)
Add node to this net.
|
Collection<N> |
addNodes(Collection<N> nodes)
Add nodes to this net.
|
P |
addPlace(P place)
Add place to this net.
|
Collection<P> |
addPlaces(Collection<P> places)
Add places to this net.
|
T |
addTransition(T transition)
Add transition to this net.
|
Collection<T> |
addTransitions(Collection<T> transitions)
Add transitions to this net.
|
void |
clear()
Clear this net.
|
IPetriNet<F,N,P,T> |
clone()
Clone this Petri net.
|
IPetriNet<F,N,P,T> |
clone(Map<N,N> map)
Clone this Petri net.
|
P |
createPlace()
Factory method to provide a place of the Petri net implementation.
|
T |
createTransition()
Factory method to provide a transition of the Petri net implementation.
|
Set<F> |
getFlow()
Get flow relation of this net.
|
Set<N> |
getMax()
Get maximal nodes of this net (alias of
getSinkNodes). |
Set<N> |
getMin()
Get minimal nodes of this net (alias of
getSourceNodes). |
Set<N> |
getNodes()
Get nodes of this net.
|
Set<T> |
getObservableTransitions()
Get observable transitions of this net.
|
Set<P> |
getPlaces()
Get places of this net.
|
Set<N> |
getPostset(Collection<N> nodes)
Get postset of given nodes.
|
Set<N> |
getPostset(N node)
Get postset of a given node.
|
Set<T> |
getPostset(P place)
Get postset of a given place
|
Set<P> |
getPostset(T transition)
Get postset of a given transition.
|
Set<P> |
getPostsetPlaces(Collection<T> transitions)
Get postset of given transitions.
|
Set<T> |
getPostsetTransitions(Collection<P> places)
Get postset of given places.
|
Set<N> |
getPreset(Collection<N> nodes)
Get preset of the given nodes.
|
Set<N> |
getPreset(N node)
Get preset of a given node.
|
Set<T> |
getPreset(P place)
Get preset of a given place.
|
Set<P> |
getPreset(T transition)
Get preset of a given transition.
|
Set<P> |
getPresetPlaces(Collection<T> transitions)
Get preset of given transitions.
|
Set<T> |
getPresetTransitions(Collection<P> places)
Get preset of given places.
|
Set<T> |
getSilentTransitions()
Get silent transitions of this net.
|
Set<N> |
getSinkNodes()
Get sink nodes of this net.
|
Set<P> |
getSinkPlaces()
Get sink places of this net.
|
Set<T> |
getSinkTransitions()
Get sink transitions of this net.
|
Set<N> |
getSourceNodes()
Get source nodes of this net.
|
Set<P> |
getSourcePlaces()
Get source places of this net.
|
Set<T> |
getSourceTransitions()
Get source transitions of this net.
|
Set<T> |
getTransitions()
Get transitions of this net.
|
Collection<F> |
removeFlow(Collection<F> flow)
Remove flow from this net.
|
F |
removeFlow(F flow)
Remove flow from this net.
|
N |
removeNode(N node)
Remove node from this net.
|
Collection<N> |
removeNodes(Collection<N> nodes)
Remove nodes from this net.
|
P |
removePlace(P place)
Remove place from this net.
|
Collection<P> |
removePlaces(Collection<P> places)
Remove places from this net.
|
T |
removeTransition(T transition)
Remove transition from this net.
|
Collection<T> |
removeTransitions(Collection<T> transitions)
Remove transitions from this net.
|
getDirectedEdgeaddEdge, addEdge, getDirectPredecessors, getDirectPredecessors, getDirectSuccessors, getDirectSuccessors, getEdgesWithSource, getEdgesWithSourceAndTarget, getEdgesWithSources, getEdgesWithSourcesAndTargets, getEdgesWithTarget, getEdgesWithTargets, getFirstDirectPredecessor, getFirstDirectSuccessor, getFirstIncomingEdge, getFirstOutgoingEdge, getIncomingEdges, getOutgoingEdgesareAdjacent, getEdge, getEdges, toDOTaddEdge, addEdge, addVertex, addVertices, areAdjacent, contains, contains, countEdges, countVertices, getAdjacent, getConnectedVertices, getDisconnectedVertices, getEdges, getEdges, getEdges, getFreshVertex, getVertices, isMultiGraph, removeEdge, removeEdges, removeVertex, removeVerticesgetDescription, getId, getName, getTag, setDescription, setId, setName, setTagcompareTogetEntitiesF addFlow(N from, N to)
from - Source node.to - Target node.F addFlow(P place, T transition)
place - Source place.transition - Target transition.F addFlow(T transition, P place)
transition - Source transition.place - Target place.N addNode(N node)
node - Node to add.Collection<N> addNodes(Collection<N> nodes)
nodes - Nodes to add.P addPlace(P place)
place - Place to add.Collection<P> addPlaces(Collection<P> places)
places - Places to add.T addTransition(T transition)
transition - Transition to add.Collection<T> addTransitions(Collection<T> transitions)
transitions - Transitions to add.N removeNode(N node)
node - Node to remove.Collection<N> removeNodes(Collection<N> nodes)
nodes - Nodes to remove.P removePlace(P place)
place - Place to remove.Collection<P> removePlaces(Collection<P> places)
places - Places to remove.T removeTransition(T transition)
transition - Transition to remove.Collection<T> removeTransitions(Collection<T> transitions)
transitions - Transitions to remove.F removeFlow(F flow)
flow - Flow to remove.Collection<F> removeFlow(Collection<F> flow)
flow - Flow to remove.Set<T> getTransitions()
Set<T> getSilentTransitions()
Set<T> getObservableTransitions()
Set<P> getPostset(T transition)
transition - Transition.Set<P> getPostsetPlaces(Collection<T> transitions)
transitions - Transitions.Set<T> getPostset(P place)
place - Place.Set<T> getPostsetTransitions(Collection<P> places)
places - Places.Set<N> getPostset(N node)
node - Node.Set<N> getPostset(Collection<N> nodes)
nodes - Nodes.Set<P> getPreset(T transition)
transition - Transition.Set<P> getPresetPlaces(Collection<T> transitions)
transitions - Transitions.Set<T> getPreset(P place)
place - Place.Set<T> getPresetTransitions(Collection<P> places)
places - Places.Set<N> getPreset(N node)
node - Node.Set<N> getPreset(Collection<N> nodes)
nodes - Nodes.Set<N> getSourceNodes()
Set<P> getSourcePlaces()
Set<T> getSourceTransitions()
Set<N> getSinkNodes()
Set<P> getSinkPlaces()
Set<T> getSinkTransitions()
Set<N> getMin()
getSourceNodes).Set<N> getMax()
getSinkNodes).T createTransition()
P createPlace()
void clear()
Copyright © 2017. All rights reserved.