public final class NetUtilities
extends java.lang.Object
Constructor and Description |
---|
NetUtilities() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<YAWLTask> |
getAllTasks(NetGraphModel net)
Returns all tasks in the selected net.
|
static java.util.Set<YAWLAtomicTask> |
getAtomicTasks(NetGraphModel net)
Returns all atomic tasks in the selected net.
|
static java.util.Set<YAWLCompositeTask> |
getCompositeTasks(NetGraphModel net)
Returns all composite tasks in the selected net.
|
static java.lang.String |
getContainerID(VertexContainer container) |
static javax.swing.ImageIcon |
getIconForNetModel(NetGraphModel model) |
static java.util.Set<YAWLFlowRelation> |
getIllegallyCopiedFlows(NetGraphModel net)
This should only be called by the PasteAction class as a cleanup.
|
static InputCondition |
getInputCondition(NetGraphModel net)
Returns the input condition of the net specified.
|
static java.util.Set<YAWLFlowRelation> |
getOutgoingFlowsFrom(YAWLCell cell)
Returns all the outgoing flows from the specified cell.
|
static OutputCondition |
getOutputCondition(NetGraphModel net)
Returns the output condition of the net specified.
|
static java.lang.String |
getPortID(YAWLPort port) |
static javax.swing.ImageIcon |
getRootNetIcon()
Returns the image icon used for the starting net of a specification
|
static YAWLTask |
getSelectedTask() |
static javax.swing.ImageIcon |
getSubNetIcon() |
static java.util.Set<YAWLTask> |
getTasksRequiringFlowPredicates(java.util.Set<java.lang.Object> cells)
Returns all the tasks that have flows requiring predicates from the set of net elements supplied
|
static java.util.Set<YAWLTask> |
getTasksWithCancellationSets(NetGraphModel net)
Returns those tasks in the selected net that trigger cancellation set behaviour.
|
static java.util.Set<YCompoundFlow> |
rationaliseFlows(java.util.Set<YFlow> flows,
java.util.Set<YCondition> implicitConditions) |
static java.awt.image.BufferedImage |
toBufferedImage(NetGraph net,
int imageBuffer) |
static void |
toPNGfile(NetGraph graph,
int imageBuffer,
java.lang.String fullFileName) |
public static java.util.Set<YAWLTask> getAllTasks(NetGraphModel net)
YAWLTask
interface.net
- The net to search within.YAWLTask
objects within the selected net.YAWLTask
public static java.util.Set<YAWLAtomicTask> getAtomicTasks(NetGraphModel net)
YAWLAtomicTask
interface.net
- The net to search within.YAWLAtomicTask
objects within the selected net.YAWLAtomicTask
public static java.util.Set<YAWLCompositeTask> getCompositeTasks(NetGraphModel net)
YAWLCompositeTask
interface.net
- The net to search within.YAWLCompositeTask
objects within the selected net.YAWLCompositeTask
public static java.util.Set<YAWLTask> getTasksWithCancellationSets(NetGraphModel net)
net
- The net to search within.CancellationSet
public static java.util.Set<YAWLTask> getTasksRequiringFlowPredicates(java.util.Set<java.lang.Object> cells)
cells
- public static java.util.Set<YCompoundFlow> rationaliseFlows(java.util.Set<YFlow> flows, java.util.Set<YCondition> implicitConditions)
public static java.lang.String getPortID(YAWLPort port)
public static java.lang.String getContainerID(VertexContainer container)
public static java.util.Set<YAWLFlowRelation> getIllegallyCopiedFlows(NetGraphModel net)
net
- public static InputCondition getInputCondition(NetGraphModel net)
net
- public static OutputCondition getOutputCondition(NetGraphModel net)
net
- public static java.util.Set<YAWLFlowRelation> getOutgoingFlowsFrom(YAWLCell cell)
cell
- public static YAWLTask getSelectedTask()
public static javax.swing.ImageIcon getRootNetIcon()
public static javax.swing.ImageIcon getSubNetIcon()
public static javax.swing.ImageIcon getIconForNetModel(NetGraphModel model)
public static void toPNGfile(NetGraph graph, int imageBuffer, java.lang.String fullFileName)
public static java.awt.image.BufferedImage toBufferedImage(NetGraph net, int imageBuffer)