TimeShiftable

org.abh80.nf.util.TimeShiftable
trait TimeShiftable[T]

This trait is implemented by the Class that needs to represent an object that could be shifted by a certain time. ==Math Note== Shifting is equivalent to:

 new_time = old_time + Δt

Type parameters

T

Type of the object

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def ++(dt: Double): T

Get a timeshifted instance of T

Get a timeshifted instance of T

Value parameters

dt

time to be shifted in seconds

Attributes

Concrete methods

def ++(timeFormat: TimeFormat): T

Get a timeshifted instance of T

Get a timeshifted instance of T

Value parameters

timeFormat

time to be shifted in TimeFormat

Attributes

See also

TimeFormat

def shiftBy(dt: Double): T

Get a timeshifted instance of T

Get a timeshifted instance of T

Value parameters

dt

time to be shifted in seconds

Attributes

def shiftBy(timeFormat: TimeFormat): T

Get a timeshifted instance of T

Get a timeshifted instance of T

Value parameters

timeFormat

time to be shifted in TimeFormat

Attributes

See also

TimeFormat