case class jTrajectory(id: String, start: Timestamp, end: Timestamp, points: List[jLocation]) extends Product with Serializable
stores geo points i.e latitude and longitude, timestamp, provide functions related to object movement
*
val t = Trajectory(id, start, end, locations) // compute behavior or attributes t.bearing t.direction t.distance t.timeInterval t.speed t.speedOverTime t.smoothTrajectory //
- id
unique id of the trajectory, default implementation use sensor-id + object-id
- start
start timestamp of the trajectory
- end
end timestamp of the trajectory
- points
List of geo points or Locations
- Alphabetic
- By Inheritance
- jTrajectory
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
lazy val
bearing: Double
given two end points of the trajectory returns the initial bearing/direction
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
lazy val
direction: String
convert bearing to direction to East, West, North or South
-
lazy val
distance: Double
approximate distance computed based on movement of object for each point in the trajectory
-
lazy val
edges: List[String]
The edges represents the roadsegment of open street map (OSM).
The edges represents the roadsegment of open street map (OSM). Each edge has unique id
trajectory is map matched with respect to open street map (OSM) , snappedTrajectory represents the new set of points on the OSM edges, the edges associated with trajectory with the trajectory after map matching are also computed for edge/link speed estimation. Link speed represents the average traffic speed on road link at a given point of time
- val end: Timestamp
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
lazy val
finalBearing: Double
given two end points of the trajectory returns the final bearing
given two end points of the trajectory returns the final bearing
For final bearing, simply take the initial bearing from the end point to the start point and reverse it (using θ = (θ+180) % 360).
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
head: jLocation
head of trajectory
- val id: String
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
last: jLocation
tail of the trajectory
-
lazy val
linearDistance: Double
great circle distance between start and end of trajectory
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val points: List[jLocation]
-
lazy val
smoothTrajectory: List[jLocation]
default trajectory smoothing is based on moving average, user can choose other trajectory smoothing algorithm like kalman filter
-
def
smoothTrajectoryLen: Int
length of the smoothened trajectory
-
lazy val
snappedTrajectory: List[jLocation]
The edges represents the roadsegment of open street map (OSM).
The edges represents the roadsegment of open street map (OSM). Each edge has unique id
trajectory is map matched with respect to open street map (OSM) , snappedTrajectory represents the new set of points on the OSM edges, the edges associated with trajectory with the trajectory after map matching are also computed for edge/link speed estimation. Link speed represents the average traffic speed on road link at a given point of time
-
lazy val
speed: Double
speed in miles per hour (mph)
- lazy val speedOverTime: Array[Double]
- val start: Timestamp
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
lazy val
timeInterval: Double
time span of the trajectory in seconds
-
def
toString(): String
customized to string
customized to string
- Definition Classes
- jTrajectory → AnyRef → Any
-
def
trajectoryLen: Int
number of points in a trajectory
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated