Hermes
 All Data Structures Files Functions Variables Macros Pages
Accessors.sql File Reference

File containing the implementation of the Trajectory data type. More...

Functions

bigint size (trajectory trajectory)
 This function returns the size of the trajectory in bytes. More...
 
integer nrpoints (trajectory trajectory)
 This functions returns the number of points in a trajectory. More...
 
integer nrsegments (trajectory trajectory)
 This function returns the number of segments in a trajectory. More...
 
interval samplingperiod (trajectory trajectory)
 
pointst pointat (trajectory trajectory, integer i)
 This function returns the point at a specific position of the trajectory. More...
 
segmentst segmentat (trajectory trajectory, integer i)
 This function returns the segment at a specific position of the trajectory. More...
 
pointst firstpoint (trajectory trajectory)
 This function returns the first point of a trajectory. More...
 
pointst lastpoint (trajectory trajectory)
 This function returns the last point of a trajectory. More...
 
segmentst firstsegment (trajectory trajectory)
 This function returns the first segment of a trajectory. More...
 
segmentst lastsegment (trajectory trajectory)
 This function returns the last segment of a trajectory. More...
 
trajectory sub (trajectory trajectory, integer s, integer e)
 This function returns the sub-trajectory from a trajectory specified by the two integers. More...
 
table points (trajectory trajectory)
 

Detailed Description

File containing the implementation of the Trajectory data type.

Author
Marios Vodas (mvoda.nosp@m.s@gm.nosp@m.ail.c.nosp@m.om).
See also
Trajectory
Trajectory type

Function Documentation

pointst firstpoint ( trajectory  trajectory)

This function returns the first point of a trajectory.

Parameters
[in]trajectoryThe trajectory
Returns
the point
See also
firstPoint
segmentst firstsegment ( trajectory  trajectory)

This function returns the first segment of a trajectory.

Parameters
[in]trajectoryThe trajectory
Returns
the segment
See also
firstSegment
pointst lastpoint ( trajectory  trajectory)

This function returns the last point of a trajectory.

Parameters
[in]trajectoryThe trajectory
Returns
the point
See also
lastPoint
segmentst lastsegment ( trajectory  trajectory)

This function returns the last segment of a trajectory.

Parameters
[in]trajectoryThe trajectory
Returns
the segment
See also
lastSegment
integer nrpoints ( trajectory  trajectory)

This functions returns the number of points in a trajectory.

Parameters
[in]trajectoryThe trajectory
Returns
the number of points
See also
NrPoints
integer nrsegments ( trajectory  trajectory)

This function returns the number of segments in a trajectory.

Parameters
[in]trajectoryThe trajectory
Returns
the number of segments
See also
NrSegments
pointst pointat ( trajectory  trajectory,
integer  i 
)

This function returns the point at a specific position of the trajectory.

Parameters
[in]trajectoryThe trajectory
[in]iThe position of the trajectory
Returns
the point
See also
pointAt
table points ( trajectory  trajectory)
interval samplingperiod ( trajectory  trajectory)
segmentst segmentat ( trajectory  trajectory,
integer  i 
)

This function returns the segment at a specific position of the trajectory.

Parameters
[in]trajectoryThe trajectory
[in]iThe position of the trajectory
Returns
the segment
See also
segmentAt
bigint size ( trajectory  trajectory)

This function returns the size of the trajectory in bytes.

Parameters
[in]trajectoryThe trajectory
Returns
the size
See also
size

Referenced by allocateTrajectory(), and reallocateTrajectory().

trajectory sub ( trajectory  trajectory,
integer  s,
integer  e 
)

This function returns the sub-trajectory from a trajectory specified by the two integers.

Parameters
[in]trajectoryThe trajectory
[in]sThe start position of the trajectory
[in]eThe end position of the trajectory
Returns
the sub-trajectory
See also
sub