jclass
Class NodeConnection

java.lang.Object
  |
  +--jclass.TimedObject
        |
        +--jclass.NodeConnection

public class NodeConnection
extends TimedObject

Class that defines a simple connection between two nodes.

Written: Radu Sion
Version: 0.14
Source: NodeConnection.java

Visit Smart Software 

See Also:
NodeInfo, Timer, Serialized Form

Field Summary
 long Metric
          Associated metric.
 int Node1
          First node of the connection.
 int Node2
          Second node of this connection.
 
Fields inherited from class jclass.TimedObject
Created
 
Constructor Summary
NodeConnection(int n1, int n2, long m, long cr)
          Creates a new Node Connection object.
 
Methods inherited from class jclass.TimedObject
computeAge, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Node1

public int Node1
First node of the connection.

Node2

public int Node2
Second node of this connection.

Metric

public long Metric
Associated metric. Maybe should be more than just a number.
Constructor Detail

NodeConnection

public NodeConnection(int n1,
                      int n2,
                      long m,
                      long cr)
Creates a new Node Connection object. No parameters checkings are performed.
Parameters:
n1 - First node
n2 - Second node
m - Associated metric
cr - Creation time (current time from the main Timer class)