|
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.ServiceConnections
public abstract class ServiceConnections
This class contains knowledge (an algorithm) how individual Moby services could be connected together based on their input and output data types.
The algorithms is separated here because it can be used (I hope) independently for various types of clients. It is used, for example, by the clients creating graphs of all Moby services, but can be used also by those real client exchanging data between services.
This class does not contact Moby registry - its methods get all
data from the caller (who usually uses CentralImpl
class to
obtain the data from a Moby registry).
Constructor Summary | |
---|---|
ServiceConnections()
|
Method Summary | |
---|---|
static ServicesEdge[] |
build(MobyDataType[] dataTypes,
MobyService[] services)
Creates all (allowed) connections between given 'services' based on the given 'dataTypes'. |
static DataServiceEdge[] |
findEndingEdges(MobyPrimaryDataSimple targetData,
MobyDataType[] dataTypes,
MobyService[] services)
|
static DataServiceEdge[] |
findStartingEdges(MobyPrimaryDataSimple sourceData,
MobyDataType[] dataTypes,
MobyService[] services)
|
static Hashtable |
optimizedDataTypes(MobyDataType[] dataTypes)
Make the data types better searchable. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceConnections()
Method Detail |
---|
public static Hashtable optimizedDataTypes(MobyDataType[] dataTypes)
dataTypes
- contains definitions of the data types
MobyDataType
public static DataServiceEdge[] findStartingEdges(MobyPrimaryDataSimple sourceData, MobyDataType[] dataTypes, MobyService[] services)
public static DataServiceEdge[] findEndingEdges(MobyPrimaryDataSimple targetData, MobyDataType[] dataTypes, MobyService[] services)
public static ServicesEdge[] build(MobyDataType[] dataTypes, MobyService[] services)
It reports warning on the STDERR if it finds an unknown data type used by any service. This would indicate an error in the Moby registry (or in this code :-)).
dataTypes
- contains definitions of the data typesservices
- contains definitions of the Moby services
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |