|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.client.FilterServices
public abstract class FilterServices
This class allows to filter a set of services using some criteria.
Constructor Summary | |
---|---|
FilterServices()
|
Method Summary | |
---|---|
static ServicesEdge[][] |
dataPaths(DataServiceEdge[] startingEdges,
ServicesEdge[] edges,
DataServiceEdge[] endingEdges)
Find all paths (using available 'edges') that start by any of the 'startingEdges' and finish by any of the 'endingEdges'. |
static ServicesEdge[] |
filter(ServicesEdge[] edges,
String[] authorities,
String[] serviceNames,
int depth)
Selects (from the given set of edges) only those edges that start in the nodes defined in 'authorities' or in 'serviceNames', and those that continue not farer then specified in 'depth'. |
static ServicesEdge[] |
joinPaths(ServicesEdge[][] paths)
Join together several paths. |
static ServicesEdge[] |
pathes(ServicesEdge[] edges,
String sourceServiceName,
String targetServiceName)
Selects (from the given set of edges) only those edges that compose pathes from a service given by 'sourceServiceName' to a service given by 'targetServiceName', or vice-versa. |
static ServicesEdge[] |
pathes2(ServicesEdge[] edges,
String sourceServiceName,
String targetServiceName)
|
static ServicesEdge[][] |
straightDataPaths(DataServiceEdge[] startingEdges,
ServicesEdge[] edges,
DataServiceEdge[] endingEdges)
Find all paths (using available 'edges') that start by any of the 'startingEdges' and finish by any of the 'endingEdges'. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterServices()
Method Detail |
---|
public static ServicesEdge[] filter(ServicesEdge[] edges, String[] authorities, String[] serviceNames, int depth)
edges
- contains definitions of all service connections.authorities
- contains names of authorities - all services
owned by these authorities will remain; if it is an empty
array, however, then all authorities are considered as wantedserviceNames
- contains names of services that will be
included in the result; if it is en empty array, however, then
all services remain (unless other criteria specified in
'authorities')depth
- indicates how far to go in the graph; the
parameter is used only if the 'authorities' or 'serviceNames'
are not empty
public static ServicesEdge[] pathes(ServicesEdge[] edges, String sourceServiceName, String targetServiceName)
edges
- contains definitions of all service connections.sourceServiceName
- names a service at the beginning or at
the end of all found pathestargetServiceName
- names a service at the beginning or at
the end of all found pathes
public static ServicesEdge[][] dataPaths(DataServiceEdge[] startingEdges, ServicesEdge[] edges, DataServiceEdge[] endingEdges)
The number of returned pathes is equal or less than a product of number of 'startingEdges' and number of 'endingEdges'.
startingEdges
- where returned paths startedges
- are all available edges the returned paths are
built from (including 'startingEdges' and 'endingEdges')endingEdges
- where returned paths finish
straightDataPaths(org.biomoby.client.DataServiceEdge[], org.biomoby.client.ServicesEdge[], org.biomoby.client.DataServiceEdge[])
public static ServicesEdge[] joinPaths(ServicesEdge[][] paths)
paths
- an array of paths (each paths is an array of
edges) that will be joined
public static ServicesEdge[] pathes2(ServicesEdge[] edges, String sourceServiceName, String targetServiceName)
public static ServicesEdge[][] straightDataPaths(DataServiceEdge[] startingEdges, ServicesEdge[] edges, DataServiceEdge[] endingEdges)
The number of returned pathes is equal or less than a product of number of 'startingEdges' and number of 'endingEdges'.
startingEdges
- where returned paths startedges
- are all available edges the returned paths are
built from (including 'startingEdges' and 'endingEdges')endingEdges
- where returned paths finish
dataPaths(org.biomoby.client.DataServiceEdge[], org.biomoby.client.ServicesEdge[], org.biomoby.client.DataServiceEdge[])
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |