public class PCRelation extends Data
Modifier and Type | Field and Description |
---|---|
java.lang.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 java.lang.String |
mAbstractChildID
The abstract id for the child node.
|
private java.lang.String |
mAbstractParentID
The abstract id for the parent node.
|
java.lang.String |
parent
the parent making up the
parent child relationship pair
in a dag
|
Constructor and Description |
---|
PCRelation()
the default constructor
|
PCRelation(java.lang.String parentName,
java.lang.String childName)
the overloaded constructor
|
PCRelation(java.lang.String parentName,
java.lang.String childName,
boolean deleted)
the overloaded constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
returns a new copy of the
Object
|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object o)
Checks if an object is similar to the one referred to by this class.
|
java.lang.String |
getAbstractChildID()
Returns the abstract child id associated with the edge.
|
java.lang.String |
getAbstractParentID()
Returns the abstract parent id associated with the edge.
|
java.lang.String |
getChild()
Returns the child in the edge.
|
java.lang.String |
getParent()
Returns the parent in the edge.
|
void |
setAbstractChildID(java.lang.String id)
Sets the abstract child id associated with the edge.
|
void |
setAbstractParentID(java.lang.String id)
Sets the abstract parent id associated with the edge.
|
void |
setChild(java.lang.String childNode)
Sets the child of the edge.
|
void |
setParent(java.lang.String parentNode)
Sets the parent of the edge.
|
java.lang.String |
toDOT()
Returns the DOT description of the object.
|
void |
toDOT(java.io.Writer stream,
java.lang.String indent)
Returns the DOT description of the object.
|
java.lang.String |
toString()
Returns the textual description.
|
setToString, vectorToString
public java.lang.String parent
public java.lang.String child
public boolean isDeleted
private java.lang.String mAbstractParentID
private java.lang.String mAbstractChildID
public PCRelation()
public PCRelation(java.lang.String parentName, java.lang.String childName, boolean deleted)
public PCRelation(java.lang.String parentName, java.lang.String childName)
public java.lang.String getParent()
public java.lang.String getChild()
public void setAbstractParentID(java.lang.String id)
id
- the abstract idpublic void setAbstractChildID(java.lang.String id)
id
- the abstract idpublic java.lang.String getAbstractParentID()
public java.lang.String getAbstractChildID()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
public java.lang.String toString()
public java.lang.String toDOT() throws java.io.IOException
java.io.IOException
- if something fishy happens to the stream.public void toDOT(java.io.Writer stream, java.lang.String indent) throws java.io.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.java.io.IOException
- if something fishy happens to the stream.public void setChild(java.lang.String childNode)
childNode
- the child nodepublic void setParent(java.lang.String parentNode)
parentNode
- the parent node