ITravellingVessels, java.lang.Iterable<INavigableVessel>@Component @Lazy public class TravellingVessels extends java.lang.Object implements ITravellingVessels
| Constructor | Description |
|---|---|
TravellingVessels() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addVessel(INavigableVessel vessel,
java.util.Optional<javafx.scene.shape.Path> path,
java.util.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.
|
java.util.Iterator<INavigableVessel> |
iterator() |
|
void |
remove(INavigableVessel vessel) |
The vessel is no longer travelling and should no longer be part of this collection.
|
public void addVessel(INavigableVessel vessel, java.util.Optional<javafx.scene.shape.Path> path, java.util.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 - to be removedpublic java.util.Iterator<INavigableVessel> iterator()
iterator in interface java.lang.Iterable<INavigableVessel>iterator in interface ITravellingVesselspublic TravellingVessel getTravellingVessel(INavigableVessel vessel)
ITravellingVesselsgetTravellingVessel in interface ITravellingVesselsvessel - for which to get the travelling instancevesselpublic boolean isTravelling(INavigableVessel vessel)
ITravellingVesselsisTravelling in interface ITravellingVesselsvessel - to be checked if it is travellingTravellingVessel for vesselCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.