de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.impl
Class GraphNodeID

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.impl.GraphNodeID
All Implemented Interfaces:
Comparable<GraphNodeID>, Comparator<GraphNodeID>
Direct Known Subclasses:
PartitGraphNodeID

@ALDMetaInfo(export=ALLOWED)
public class GraphNodeID
extends Object
implements Comparable<GraphNodeID>, Comparator<GraphNodeID>

A graph node object to hold a nodeID as well as a subgraphID

Author:
Oliver Gress

Field Summary
 int nodeID
          The node's ID
 int subgraphID
          The node's subgraphID
 
Constructor Summary
GraphNodeID(int nodeID)
          Constructor (subgraphID=0)
GraphNodeID(int nodeID, int subgraphID)
          Constructor to assign the node to a subgraph
 
Method Summary
 int compare(GraphNodeID o1, GraphNodeID o2)
           
 int compareTo(GraphNodeID o)
           
 boolean equals(Object o)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nodeID

public int nodeID
The node's ID


subgraphID

public int subgraphID
The node's subgraphID

Constructor Detail

GraphNodeID

public GraphNodeID(int nodeID)
Constructor (subgraphID=0)


GraphNodeID

public GraphNodeID(int nodeID,
                   int subgraphID)
Constructor to assign the node to a subgraph

Method Detail

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(GraphNodeID o)
Specified by:
compareTo in interface Comparable<GraphNodeID>

compare

public int compare(GraphNodeID o1,
                   GraphNodeID o2)
Specified by:
compare in interface Comparator<GraphNodeID>

equals

public boolean equals(Object o)
Specified by:
equals in interface Comparator<GraphNodeID>
Overrides:
equals in class Object


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.