alchemist
24.0.7-dev06+b76482905
alchemist-api
/
it.unibo.alchemist.model.interfaces
/
Time
Time
interface
Time
:
Comparable
<
T
>
,
Serializable
Content copied to clipboard
Interface for time representation.
Functions
Properties
Functions
compare
To
Link copied to clipboard
abstract
fun
compareTo
(
p
:
T
)
:
Int
Content copied to clipboard
is
Infinite
Link copied to clipboard
abstract
fun
isInfinite
(
)
:
Boolean
Content copied to clipboard
Verifies if the
Time
is set at infinite, namely if the event will never happen.
minus
Link copied to clipboard
abstract
fun
minus
(
dt
:
Time
)
:
Time
Content copied to clipboard
Allows to subtract a
Time
to this
Time
.
plus
Link copied to clipboard
abstract
fun
plus
(
dt
:
Time
)
:
Time
Content copied to clipboard
Allows to add a
Time
to this
Time
.
times
Link copied to clipboard
abstract
fun
times
(
var
:
Double
)
:
Time
Content copied to clipboard
Allows to multiply this
Time
for a constant.
to
Double
Link copied to clipboard
abstract
fun
toDouble
(
)
:
Double
Content copied to clipboard
Allows to get a double representation of this
Time
.
Properties
INFINITY
Link copied to clipboard
val
INFINITY
:
Time
Content copied to clipboard
Indefinitely future time.
ZERO
Link copied to clipboard
val
ZERO
:
Time
Content copied to clipboard
Initial time.