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

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

Functions

segmentst insegmentst (cstring)
 
cstring outsegmentst (segmentst)
 
segmentst recvsegmentst (internal)
 
bytea send (segmentst)
 
boolean equals (segmentst segmenta, segmentst segmentb)
 
integer hash (segmentst segment)
 
period gett (segmentst segment)
 The function returns the period of the SegmentST. More...
 
timestamp getti (segmentst segment)
 The function returns the start time of the period of the SegmentST. More...
 
timestamp gette (segmentst segment)
 The function returns the end time of the period of the SegmentST. More...
 
segmentsp getsp (segmentst segment)
 The function returns the Spatial Segment of the SegmentST. More...
 
pointsp geti (segmentst segment)
 The function returns the start of the Spatial Segment of the SegmentST. More...
 
integer getix (segmentst segment)
 The function returns the x coordinate of the start of the Spatial Segment of the SegmentST. More...
 
integer getiy (segmentst segment)
 The function returns the y coordinate of the start of the Spatial Segment of the SegmentST. More...
 
pointsp gete (segmentst segment)
 The function returns the end of the Spatial Segment of the SegmentST. More...
 
integer getex (segmentst segment)
 The function returns the x coordinate of the end of the Spatial Segment of the SegmentST. More...
 
integer getey (segmentst segment)
 The function returns the y coordinate of the end of the Spatial Segment of the SegmentST. More...
 
segmentst segmentst (timestamp ti, integer ix, integer iy, timestamp te, integer ex, integer ey)
 The function returns a SegmentST data type. More...
 
segmentst segmentst (pointst i, pointst e)
 The function returns a SegmentST data type. More...
 
segmentst clone (segmentst segment)
 The function copy a SegmentST data type to a new position in the memory. More...
 

Detailed Description

File containing the implementation of the SegmentST data type.

Author
Marios Vodas (mvoda.nosp@m.s@gm.nosp@m.ail.c.nosp@m.om).
See also
SegmentST
Spatio-temporal data types

Function Documentation

segmentst clone ( segmentst  segment)

The function copy a SegmentST data type to a new position in the memory.

Parameters
[in]segmentthe segment to be cloned
Returns
the new segment in the memory
boolean equals ( segmentst  segmenta,
segmentst  segmentb 
)
pointsp gete ( segmentst  segment)

The function returns the end of the Spatial Segment of the SegmentST.

Parameters
[in]segmentThe SegmentST
Returns
end of the SegmentSP
See also
get
integer getex ( segmentst  segment)

The function returns the x coordinate of the end of the Spatial Segment of the SegmentST.

Parameters
[in]segmentThe SegmentST
Returns
end of the SegmentSP
See also
get
integer getey ( segmentst  segment)

The function returns the y coordinate of the end of the Spatial Segment of the SegmentST.

Parameters
[in]segmentThe SegmentST
Returns
end of the SegmentSP
See also
get
pointsp geti ( segmentst  segment)

The function returns the start of the Spatial Segment of the SegmentST.

Parameters
[in]segmentThe SegmentST
Returns
start of the SegmentSP
See also
get
integer getix ( segmentst  segment)

The function returns the x coordinate of the start of the Spatial Segment of the SegmentST.

Parameters
[in]segmentThe SegmentST
Returns
start of the SegmentSP
See also
get
integer getiy ( segmentst  segment)

The function returns the y coordinate of the start of the Spatial Segment of the SegmentST.

Parameters
[in]segmentThe SegmentST
Returns
start of the SegmentSP
See also
get
segmentsp getsp ( segmentst  segment)

The function returns the Spatial Segment of the SegmentST.

Parameters
[in]segmentThe SegmentST
Returns
SegmentSP
See also
get
period gett ( segmentst  segment)

The function returns the period of the SegmentST.

Parameters
[in]segmentThe SegmentST
Returns
the period
See also
get
timestamp gette ( segmentst  segment)

The function returns the end time of the period of the SegmentST.

Parameters
[in]segmentThe SegmentST
Returns
the end time
See also
get
timestamp getti ( segmentst  segment)

The function returns the start time of the period of the SegmentST.

Parameters
[in]segmentThe SegmentST
Returns
the start time
See also
get
integer hash ( segmentst  segment)
segmentst insegmentst ( cstring  )
cstring outsegmentst ( segmentst  )
segmentst recvsegmentst ( internal  )
segmentst segmentst ( timestamp  ti,
integer  ix,
integer  iy,
timestamp  te,
integer  ex,
integer  ey 
)

The function returns a SegmentST data type.

Parameters
[in]tithe initial timestamp
[in]ixthe initial x coordinate
[in]iythe initial y coordinate
[in]tethe ending timestamp
[in]exthe ending x coordinate
[in]eythe ending y coordinate
Returns
a SegmentST data type
segmentst segmentst ( pointst  i,
pointst  e 
)

The function returns a SegmentST data type.

Parameters
[in]ithe initial PointST
[in]ethe initial PointST
Returns
a SegmentST data type
bytea send ( segmentst  )