Mobility::Presence Class Reference
[pydtn.mobility]

A Position at a particular Time. More...

#include <mobility/Presence.h>

Collaboration diagram for Mobility::Presence:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Presence (const Time &t, const Position &p, const Time &d)
 Constructor.
 Presence (const Presence &p)
 Copy constructor.
void operator= (const Presence &p)
 Assignment operator.
const Timetime () const
 
Returns:
associated Time

const Positionposition () const
 
Returns:
associated Position

const Timeduration () const
 
Returns:
associated length of Time spent at the point

bool operator== (const Presence &p) const
 Equality operator, considers only time.
bool operator< (const Presence &p) const
 Less-than operator, considers only time.
bool operator> (const Presence &p) const
 Greater-than operator, considers only time.
bool operator<= (const Presence &p) const
 Less-than-or-equals, considers only time.
bool operator>= (const Presence &p) const
 Greater-than-or-equals, considers only time.
bool operator== (const Time &t) const
 Equality operator, considers only time.
bool operator< (const Time &t) const
 Less-than operator, considers only time.
bool operator> (const Time &t) const
 Greater-than operator, considers only time.
bool operator<= (const Time &t) const
 Less-than-or-equals, considers only time.
bool operator>= (const Time &t) const
 Greater-than-or-equals, considers only time.
Presence towards (const Presence &p, const Time &t) const
 Interpolate the current Presence towards another at an intervening time.


Detailed Description

A Position at a particular Time.

Definition at line 44 of file Presence.h.


Member Function Documentation

Presence Presence::towards ( const Presence p,
const Time t 
) const

Interpolate the current Presence towards another at an intervening time.

Parameters:
p The Presence we're moving towards
t The interpolation Time
Returns:
a new Presence at the specified Time t

Definition at line 45 of file Presence.cc.

References Time::MILLION, position(), Presence(), time(), and Time::tv.


The documentation for this class was generated from the following files:
Generated on Mon Mar 24 11:15:49 2008 for Pydtn Simulator by  doxygen 1.5.4