public class Link
extends java.lang.Object
Constructor and Description |
---|
Link(Node tf,
Node target,
LinkProperties linkProperties)
Constructs a new link with associated LinkProperties
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object b)
Overwrites equals method.
|
LinkProperties |
getLinkProperties()
Getter for the properties
|
Node |
getTarget()
Getter for target node
|
Node |
getTf()
Getter for source node/transcription factor
|
int |
hashCode()
Overwrites hash value of this class, to be compatible with the new equals method.
|
boolean |
isOppositeLink(Link link)
Helper method which returns true of the given link is the opposite link of this.
|
void |
setLinkProperties(LinkProperties linkProperties)
Setter for the link properties
|
void |
setTarget(Node target)
Setter for target node
|
void |
setTf(Node tf)
Setter for source node/transcrption factor.
|
java.lang.String |
toString()
The String reprensentation of this class.
|
public Link(Node tf, Node target, LinkProperties linkProperties)
tf
- Source nodetarget
- Target nodelinkProperties
- Properties of the linkpublic boolean equals(java.lang.Object b)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Node getTf()
public void setTf(Node tf)
tf
- the source node to be setpublic Node getTarget()
public void setTarget(Node target)
target
- the target nodepublic LinkProperties getLinkProperties()
public void setLinkProperties(LinkProperties linkProperties)
linkProperties
- link propertiespublic boolean isOppositeLink(Link link)
link
- the link to be checked