|
||||||||||
| 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()
|
java.lang.String |
getLabel()
|
int |
getLabelXPos()
|
int |
getLabelYPos()
|
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 |
java.lang.Object |
getRepObject()
|
Node[] |
getRoots()
|
int |
getXPos()
|
int |
getYPos()
|
boolean |
isCyclic()
|
boolean |
isDirected()
|
boolean |
isTree()
|
void |
setLabel(java.lang.String label)
|
void |
setLabelPosition(int x,
int y)
|
void |
setLabelXPos(int x)
|
void |
setLabelYPos(int y)
|
void |
setPosition(int x,
int y)
|
void |
setXPos(int x)
|
void |
setYPos(int y)
|
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.Objectpublic int getXPos()
getXPos in interface Positionablepublic int getYPos()
getYPos in interface Positionablepublic void setXPos(int x)
setXPos in interface Positionablepublic void setYPos(int y)
setYPos in interface Positionable
public void setPosition(int x,
int y)
setPosition in interface Positionablepublic int getLabelXPos()
getLabelXPos in interface Positionablepublic int getLabelYPos()
getLabelYPos in interface Positionablepublic void setLabelXPos(int x)
setLabelXPos in interface Positionablepublic void setLabelYPos(int y)
setLabelYPos in interface Positionable
public void setLabelPosition(int x,
int y)
setLabelPosition in interface Positionablepublic java.lang.String getLabel()
getLabel in interface Positionablepublic void setLabel(java.lang.String label)
setLabel in interface Positionablepublic java.lang.Object getRepObject()
getRepObject in interface Positionable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||