Modifier and Type | Field and Description |
---|---|
String |
child
the child making up the
parent child relationship pair
in a dag
|
boolean |
isDeleted
this is used for collapsing the dag
during the reduction algorithm
on the basis of the results returned
from the Replica Catalog.
|
private String |
mAbstractChildID
The abstract id for the child node.
|
private String |
mAbstractParentID
The abstract id for the parent node.
|
String |
parent
the parent making up the
parent child relationship pair
in a dag
|
Constructor and Description |
---|
PCRelation()
the default constructor
|
PCRelation(String parentName,
String childName)
the overloaded constructor
|
PCRelation(String parentName,
String childName,
boolean deleted)
the overloaded constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
returns a new copy of the
Object
|
int |
compareTo(Object o) |
boolean |
equals(Object o)
Checks if an object is similar to the one referred to by this class.
|
String |
getAbstractChildID()
Returns the abstract child id associated with the edge.
|
String |
getAbstractParentID()
Returns the abstract parent id associated with the edge.
|
String |
getChild()
Returns the child in the edge.
|
String |
getParent()
Returns the parent in the edge.
|
void |
setAbstractChildID(String id)
Sets the abstract child id associated with the edge.
|
void |
setAbstractParentID(String id)
Sets the abstract parent id associated with the edge.
|
void |
setChild(String childNode)
Sets the child of the edge.
|
void |
setParent(String parentNode)
Sets the parent of the edge.
|
String |
toDOT()
Returns the DOT description of the object.
|
void |
toDOT(Writer stream,
String indent)
Returns the DOT description of the object.
|
String |
toString()
Returns the textual description.
|
setToString, vectorToString
public String parent
public String child
public boolean isDeleted
private String mAbstractParentID
private String mAbstractChildID
public PCRelation()
public PCRelation(String parentName, String childName, boolean deleted)
public String getParent()
public String getChild()
public void setAbstractParentID(String id)
id
- the abstract idpublic void setAbstractChildID(String id)
id
- the abstract idpublic String getAbstractParentID()
public String getAbstractChildID()
public boolean equals(Object o)
public int compareTo(Object o)
public String toString()
public String toDOT() throws IOException
IOException
- if something fishy happens to the stream.public void toDOT(Writer stream, String indent) throws IOException
stream
- is a stream opened and ready for writing. This can also
be a StringWriter for efficient output.indent
- is a String
of spaces used for pretty
printing. The initial amount of spaces should be an empty
string. The parameter is used internally for the recursive
traversal.IOException
- if something fishy happens to the stream.public void setChild(String childNode)
childNode
- the child nodepublic void setParent(String parentNode)
parentNode
- the parent node