@Component @Lazy public class TravellingVessels extends Object implements ITravellingVessels
| Modifier and Type | Field and Description |
|---|---|
private Map<INavigableVessel,TravellingVessel> |
vessels |
| Constructor and Description |
|---|
TravellingVessels() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVessel(INavigableVessel vessel,
Optional<javafx.scene.shape.Path> path,
List<javafx.geometry.Point2D> points)
The
vessel starts it's travel and must be added to this collection together with its data. |
TravellingVessel |
getTravellingVessel(INavigableVessel vessel)
Retrieve the meta date for a travelling vessel.
|
boolean |
isTravelling(INavigableVessel vessel)
Check if the vessel is currently travelling.
|
Iterator<INavigableVessel> |
iterator() |
void |
remove(INavigableVessel vessel)
The vessel is no longer travelling and should no longer be part of this collection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprivate final Map<INavigableVessel,TravellingVessel> vessels
public void addVessel(INavigableVessel vessel, Optional<javafx.scene.shape.Path> path, List<javafx.geometry.Point2D> points)
vessel starts it's travel and must be added to this collection together with its data.vessel - that starts the travelpath - the Bezière path representing the route.points - the list of points that make up the path along which the vessel is travelling.public void remove(INavigableVessel vessel)
vessel - public Iterator<INavigableVessel> iterator()
iterator in interface ITravellingVesselsiterator in interface Iterable<INavigableVessel>public TravellingVessel getTravellingVessel(INavigableVessel vessel)
getTravellingVessel in interface ITravellingVesselsvessel - public boolean isTravelling(INavigableVessel vessel)
isTravelling in interface ITravellingVesselsvessel - Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.