NPTLab
Class CoordWrapper

java.lang.Object
  extended by NPTLab.CoordWrapper
Direct Known Subclasses:
CoordWrapperUserMap

public class CoordWrapper
extends java.lang.Object

Class that wraps th class Coord in an object that adds an univoque ID to a couple of Coordinates (x,y)


Constructor Summary
CoordWrapper()
           
 
Method Summary
static CoordWrapper createCoordWrap(core.Coord c)
          Method to Create CW with coord calling the private constructor
static CoordWrapper createDummyCoordWrap(core.Coord c)
          Method to create a DummyCW with coord calling the private constructor
 core.Coord getCoord()
          Method to the Coord cotnained in the CoordWrapper element
 int getID()
          Returns the univocal ID of the CoordWrapper element
 java.lang.String toString()
          Method for printing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoordWrapper

public CoordWrapper()
Method Detail

createCoordWrap

public static CoordWrapper createCoordWrap(core.Coord c)
Method to Create CW with coord calling the private constructor

Parameters:
c - Coord to be wrapped in the elment adding an ID
Returns:
CoordWrapper

createDummyCoordWrap

public static CoordWrapper createDummyCoordWrap(core.Coord c)
Method to create a DummyCW with coord calling the private constructor

Parameters:
c - Coord to be wrapped in the elment adding an ID
Returns:
and object of CoordWrapperClasse

getCoord

public core.Coord getCoord()
Method to the Coord cotnained in the CoordWrapper element

Returns:
Coord

getID

public int getID()
Returns the univocal ID of the CoordWrapper element

Returns:
int

toString

public java.lang.String toString()
Method for printing

Overrides:
toString in class java.lang.Object
Returns:
string