World Ocean Simulation System (WOSS) library
WossWpPosition::WayPoint Class Reference
Collaboration diagram for WossWpPosition::WayPoint:
Collaboration graph

Public Member Functions

 WayPoint (const woss::CoordZ &destination, double speed=0.0, double time=HUGE_VAL, int loop_id=INT_MAX, int total_loops=0)
 
void setDestination (const woss::CoordZ &dest)
 
void setSpeed (double s)
 
void setTimeToWait (double t)
 
void setLoopId (int id)
 
void setTotalLoops (int loops)
 
const woss::CoordZgetDestination () const
 
double getSpeed () const
 
double getTimeToWait () const
 
int getLoopId () const
 
int getTotalLoops () const
 
bool isValid () const
 
bool hasToLoop () const
 
bool hasToWait () const
 
bool hasToStop () const
 
virtual double getTimeOfArrival (const WayPoint &dest_waypoint) const
 
virtual woss::CoordZ getCurrentPosition (const WayPoint &dest_waypoint, double time_elapsed) const
 

Protected Attributes

woss::CoordZ destination
 
double speed
 
double time_to_wait
 
int loop_to_waypoint_id
 
int total_loops
 

Friends

std::ostream & operator<< (std::ostream &os, const WayPoint &instance)
 

The documentation for this class was generated from the following files: