Log4j 1.1

pl.psnc.expres.model.util
Class EdgeHelper

java.lang.Object
  extended by pl.psnc.expres.model.util.EdgeHelper

public abstract class EdgeHelper
extends java.lang.Object

EdgeHelper class - helper class to handle workflow edges.

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Constructor Summary
EdgeHelper()
           
 
Method Summary
static java.util.List<EdgeValue> getAllEdges(pl.psnc.graph.model.type.IResourceDecorator startResource, pl.psnc.graph.model.type.IResourceDecorator endResource, java.util.List<EdgeValue> edgeList)
          Get list of all the matching edges between two given graph nodes or null if no matching pair was found.
static EdgeValue getEndEdge(pl.psnc.graph.model.type.IResourceDecorator startResource, java.util.List<EdgeValue> edgeList)
          Get first matching end edge going from the given resource or null if no matching pair was found
static EdgeValue getStartEdge(pl.psnc.graph.model.type.IResourceDecorator endResource, java.util.List<EdgeValue> edgeList)
          Get first matching start edge going to given resource or null if no matching pair was found
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeHelper

public EdgeHelper()
Method Detail

getAllEdges

public static java.util.List<EdgeValue> getAllEdges(pl.psnc.graph.model.type.IResourceDecorator startResource,
                                                    pl.psnc.graph.model.type.IResourceDecorator endResource,
                                                    java.util.List<EdgeValue> edgeList)
Get list of all the matching edges between two given graph nodes or null if no matching pair was found. If any of the given nodes is null null is returned.

Parameters:
startResource - start resource, which defines beginning of the edge
endResource - end resource, which defines edge end
edgeList - the list of edges
Returns:
list of all the matching edges between two given graph nodes

getStartEdge

public static EdgeValue getStartEdge(pl.psnc.graph.model.type.IResourceDecorator endResource,
                                     java.util.List<EdgeValue> edgeList)
Get first matching start edge going to given resource or null if no matching pair was found

Parameters:
endResource - end resource, which defines edge end
edgeList - the list of edges
Returns:
first matching start edge going to given resource

getEndEdge

public static EdgeValue getEndEdge(pl.psnc.graph.model.type.IResourceDecorator startResource,
                                   java.util.List<EdgeValue> edgeList)
Get first matching end edge going from the given resource or null if no matching pair was found

Parameters:
startResource - start resource, which defines beginning of the edge
edgeList - the list of edges
Returns:
first matching end edge going from the given resource

Log4j 1.1

Copyright 2007-2008 by VLAB