alchemist-interfaces / it.unibo.alchemist.model.interfaces / Time

Time

interface Time : Comparable<Time!>, Serializable

Interface for time representation.

Functions

isInfinite

Verifies if the Time is set at infinite, namely if the event will never happen.

abstract fun isInfinite(): Boolean

minus

Allows to subtract a Time to this Time.

abstract fun minus(dt: Time!): Time!

plus

Allows to add a Time to this Time.

abstract fun plus(dt: Time!): Time!

times

Allows to multiply this Time for a constant.

abstract fun times(var: Double): Time!

toDouble

Allows to get a double representation of this Time.

abstract fun toDouble(): Double