|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--uk.ac.ic.doc.automed.reps.Network
| Constructor Summary | |
Network(Schema[][] paths)
Constructs a directed network from the schema paths supplied. |
|
Network(java.lang.String name,
Schema[][] paths)
Constructs a directed network from the schema paths supplied. |
|
Network(java.lang.String name,
Schema[][] paths,
boolean directed,
boolean maximal)
Constructs a network from the schema paths supplied. |
|
| Method Summary | |
boolean |
areRelativesMaximal()
|
boolean |
contains(Node node)
Returns whether or not the network contains the supplied node. |
boolean |
contains(Schema schema)
Returns whether or not the network contains the supplied schema |
boolean |
contains(java.lang.String name)
Returns whether or not the network contains the named schema |
static Network[] |
getAllNetworks()
Returns an array of all networks in the repository. |
Node[] |
getAllNodes()
|
Node[] |
getLeafs()
|
java.lang.String |
getName()
|
static Network |
getNetwork(Schema s,
java.lang.String name)
Returns the complete undirected network that contains schema s. |
Node |
getNode(Node node)
Deprecated. |
Node |
getNode(Schema schema)
Returns the network node representing the supplied schema |
Node |
getNode(java.lang.String name)
Returns the network node representing the named schema |
Node[] |
getRoots()
|
boolean |
isCyclic()
|
boolean |
isDirected()
|
boolean |
isTree()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Network(Schema[][] paths)
throws IntegrityException
public Network(java.lang.String name,
Schema[][] paths)
throws IntegrityException
name - The name to give the network
public Network(java.lang.String name,
Schema[][] paths,
boolean directed,
boolean maximal)
throws IntegrityException
name - The name to give the networkdirected - Shoud the network be directedmaximal - If not directed, should each nodes parents and children
be the empty set or the same as the adjacent set for the node| Method Detail |
public java.lang.String getName()
public boolean isDirected()
public boolean isCyclic()
public boolean isTree()
public boolean areRelativesMaximal()
public boolean contains(java.lang.String name)
name - The name of the schema
public boolean contains(Schema schema)
public boolean contains(Node node)
node - A node representing the schema to be tested
public Node getNode(java.lang.String name)
name - Name of the schema whose Node is to be returned
public Node getNode(Schema schema)
schema - The schema whose Node is to be returned
public Node getNode(Node node)
public Node[] getAllNodes()
public Node[] getRoots()
public Node[] getLeafs()
public static Network[] getAllNetworks()
public static Network getNetwork(Schema s,
java.lang.String name)
s - The schema to trawl the network fromname - The name to give the new network or null for a default name
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||