| java.lang.Object org.cougaar.logistics.plugin.seanet.Network
Network | public class Network (Code) | | A sea route network. It uses a standard network of nodes and
links provided by NodeData.class. The Panama and Suez canals can
be opened and closed.
The network should be used as a stateful calculator of
distances and routes:
- Use setFrom(lat, lon) to set a from location and compute
distances from it and the network nodes.
- Use setTo(lat, lon) to set a to location.
- Use distance() to compute the distance in nautical miles
between from and to.
- Use route() to return an iterator of Location's of the route
from to to from. The locations along the route are only valid
while the from point has not change.
|
Inner Class :public class RouteIterator implements Iterator | |
fromLatfromLon | double fromLatfromLon(Code) | | |
toLattoLon | double toLattoLon(Code) | | |
closestNode | public Node closestNode(double latitude, double longitude)(Code) | | Find the closest Node in the network to this location.
|
distance | public double distance(double fromLat, double fromLon, double toLat, double toLon)(Code) | | |
distance | public double distance(double toLat, double toLon)(Code) | | |
distance | public double distance()(Code) | | |
getPanamaCanal | public boolean getPanamaCanal()(Code) | | |
getSuezCanal | public boolean getSuezCanal()(Code) | | |
routeNoSourceOrDestination | public Iterator routeNoSourceOrDestination()(Code) | | |
setFrom | public void setFrom(double lat, double lon)(Code) | | |
setFrom | public void setFrom(Node from)(Code) | | Search the entire net so distance and routes to the from point can
be computed easily.
|
setPanamaCanal | public void setPanamaCanal(boolean isOpen)(Code) | | |
setSuezCanal | public void setSuezCanal(boolean isOpen)(Code) | | |
setTo | public void setTo(double lat, double lon)(Code) | | |
|
|