Time

object Time

Module that contains the time-related concepts.

class Object
trait Matchable
class Any
Time.type

Type members

Classlikes

enum Period

Describe the period of the day in order to understand if the environment time represent a day time or a night time. See also TimeStamp.period.

Describe the period of the day in order to understand if the environment time represent a day time or a night time. See also TimeStamp.period.

Module that contain the time configuration for the simulation.

Module that contain the time configuration for the simulation.

object TimeStamp
Companion:
class
trait TimeStamp extends Ordered[TimeStamp]

Model the TimeStamp concept.

Model the TimeStamp concept.

Companion:
object

Types

type DurationTime = FiniteDuration

Alias for finite duration time in order to represent a duration in a more domain-specific terminology

Alias for finite duration time in order to represent a duration in a more domain-specific terminology

Value members

Concrete methods

def DurationTime(length: Long, unit: TimeUnit): DurationTime

Factory for DurationTime

Factory for DurationTime

Value parameters:
length

the length of the duration

unit

the unit used to express the duration

Returns:

DurationTime instance

Extensions

Extensions

extension (t: TimeStamp)
@targetName("plus")

It allows to sum a DurationTime to a TimeStamp. It will apply the corrections on iteration automatically.

It allows to sum a DurationTime to a TimeStamp. It will apply the corrections on iteration automatically.

@targetName("plus")
def +(ticks: Long): TimeStamp

It allows to sum some absolute ticks to a TimeStamp. It will apply the corrections on iteration automatically.

It allows to sum some absolute ticks to a TimeStamp. It will apply the corrections on iteration automatically.