pl.edu.agh.cast.model.visual.backward
Class Connection

java.lang.Object
  extended by pl.edu.agh.cast.model.visual.backward.Connection
All Implemented Interfaces:
Serializable

public class Connection
extends Object
implements Serializable

A visual representation of a IRelation.

Author:
AGH CAST Team
See Also:
Serialized Form

Constructor Summary
Connection()
          Default constructor.
Connection(Node source, Node target, Date connectionStart)
          Constructor.
 
Method Summary
 void copyTo(Connection that)
          Copies all fields of this Connection instance to that instance.
 boolean equals(Object obj)
          
 Node getSourceNode()
           
 Date getStartDate()
           
 Node getTargetNode()
           
 int hashCode()
          
 void setSourceNode(Node sourceNode)
           
 void setStartDate(Date startDate)
           
 void setTargetNode(Node targetNode)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Connection

public Connection()
Default constructor.


Connection

public Connection(Node source,
                  Node target,
                  Date connectionStart)
Constructor.

Parameters:
source - source node
target - target node
connectionStart - time of connection
Method Detail

getSourceNode

public Node getSourceNode()

setSourceNode

public void setSourceNode(Node sourceNode)

getTargetNode

public Node getTargetNode()

setTargetNode

public void setTargetNode(Node targetNode)

getStartDate

public Date getStartDate()

setStartDate

public void setStartDate(Date startDate)

copyTo

public void copyTo(Connection that)
Copies all fields of this Connection instance to that instance.

Parameters:
that - instance of Connection to copy this instance to

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.