Uses of Class
core.Coord

Packages that use Coord
core Contains core classes and interfaces of the simulator. 
gui Contains the classes of Graphical User Interface. 
gui.playfield Contains the classes of Graphical User Interface's playfield -view (the graphical presentation of the nodes' locations and other information). 
input Provides interfaces and classes for reading input data from external sources. 
movement Contains different movement models and related classes for the simulator. 
movement.map Sub package for MapBasedMovement movement model's (and its sub classes) helper classes. 
report Contains all the report classes. 
test Provides some unit and integration tests for the classes. 
 

Uses of Coord in core
 

Methods in core that return Coord
 Coord Coord.clone()
          Returns a clone of this coordinate
 Coord DTNHost.getLocation()
          Returns the current location of this host.
 

Methods in core with parameters of type Coord
 int Coord.compareTo(Coord other)
          Compares this coordinate to other coordinate.
 double Coord.distance(Coord other)
          Returns the distance to another coordinate
 boolean Coord.equals(Coord c)
          Checks if this coordinate's location is equal to other coordinate's
 void MovementListener.initialLocation(DTNHost host, Coord location)
          Method is called when a host receives its initial location from movement model.
 void MovementListener.newDestination(DTNHost host, Coord destination, double speed)
          Method is called every time a host receives a new destination from its movement model.
 void DTNHost.setLocation(Coord location)
          Sets the Node's location overriding any location set by movement model
 void Coord.setLocation(Coord c)
          Sets this coordinate's location to be equal to other coordinates location
 

Uses of Coord in gui
 

Methods in gui that return Coord
 Coord DTNSimGUI.getCenterViewCoord()
          Returns the world coordinates that are currently in the center of the viewport
 

Methods in gui with parameters of type Coord
 void DTNSimGUI.centerViewAt(Coord loc)
          Sets certain location to be in the center of the playfield view
 

Uses of Coord in gui.playfield
 

Methods in gui.playfield that return Coord
 Coord PlayField.getGraphicsPosition(Coord loc)
          Returns the graphical presentation location for the given world location
 Coord PlayField.getWorldPosition(Coord loc)
          Returns a world location for a given graphical location.
 

Methods in gui.playfield with parameters of type Coord
 Coord PlayField.getGraphicsPosition(Coord loc)
          Returns the graphical presentation location for the given world location
 Coord PlayField.getWorldPosition(Coord loc)
          Returns a world location for a given graphical location.
 

Uses of Coord in input
 

Methods in input that return Coord
protected  Coord WKTReader.parsePoint()
          Parses a WKT point data from the intialized reader
 

Methods in input that return types with arguments of type Coord
 java.util.Map<Coord,MapNode> WKTMapReader.getNodesHash()
          Returns the original Map object that was used to read the map
protected  java.util.List<Coord> WKTReader.parseLineString(java.lang.String line)
          Parses coordinate tuples from "LINESTRING" lines
protected  java.util.List<java.util.List<Coord>> WKTReader.parseMultilinestring()
          Parses a MULTILINESTRING statement that has nested linestrings from the current reader
 java.util.List<java.util.List<Coord>> WKTReader.readLines(java.io.File file)
          Read line (LINESTRING) data from a file
 java.util.List<Tuple<java.lang.String,Coord>> ExternalMovementReader.readNextMovements()
          Reads all new id-coordinate tuples that belong to the same time instance
 java.util.List<Coord> WKTReader.readPoints(java.io.File file)
          Read point data from a file
 java.util.List<Coord> WKTReader.readPoints(java.io.Reader r)
          Read point data from a Reader
 

Uses of Coord in movement
 

Methods in movement that return Coord
 Coord RandomWaypoint.getInitialLocation()
          Returns a possible (random) placement for a host
abstract  Coord MovementModel.getInitialLocation()
          Returns a new initial placement for a node
 Coord MapRouteMovement.getInitialLocation()
           
 Coord MapBasedMovement.getInitialLocation()
          Returns a (random) coordinate that is between two adjacent MapNodes
 Coord ExternalMovement.getInitialLocation()
           
 Coord Path.getNextWaypoint()
          Returns the next waypoint on this path
 

Methods in movement that return types with arguments of type Coord
 java.util.List<Coord> Path.getCoords()
          Returns a refence to the coordinates of this path
 

Methods in movement with parameters of type Coord
 void Path.addWaypoint(Coord wp)
          Adds a new waypoint to the end of the path.
 void Path.addWaypoint(Coord wp, double speed)
          Adds a new waypoint with a speed towards that waypoint
 

Uses of Coord in movement.map
 

Methods in movement.map that return Coord
 Coord MapNode.getLocation()
          Returns the location of the node
 Coord SimMap.getMaxBound()
          Returns the lower right corner coordinate of the map
 Coord SimMap.getMinBound()
          Returns the upper left corner coordinate of the map
 Coord SimMap.getOffset()
          Returns the offset that has been caused by translates made to this map (does NOT take into account mirroring).
 

Methods in movement.map with parameters of type Coord
 MapNode SimMap.getNodeByCoord(Coord c)
          Returns a MapNode at given coordinates or null if there's no MapNode in the location of the coordinate
 

Constructors in movement.map with parameters of type Coord
MapNode(Coord location)
          Constructor.
 

Constructor parameters in movement.map with type arguments of type Coord
SimMap(java.util.Map<Coord,MapNode> nodes)
           
 

Uses of Coord in report
 

Methods in report with parameters of type Coord
 void MovementNs2Report.initialLocation(DTNHost host, Coord location)
           
 void MovementNs2Report.newDestination(DTNHost host, Coord dst, double speed)
           
 

Uses of Coord in test
 

Fields in test declared as Coord
protected  Coord AbstractRouterTest.c0
           
protected static Coord AbstractRouterTest.disconnectLocation
           
protected  Coord AbstractRouterTest.farAway
           
 

Methods in test that return Coord
 Coord StationaryMovement.getInitialLocation()
          Returns the only location of this movement model
 

Methods in test with parameters of type Coord
 DTNHost TestUtils.createHost(Coord loc)
          Creates a host to a location with stationary movement model and default name.
 DTNHost TestUtils.createHost(Coord loc, java.lang.String name)
          Creates a host to a location with stationary movement model and MessageRouter router.
 

Constructors in test with parameters of type Coord
StationaryMovement(Coord location)