Package it.unibo.alchemist.model
Interface Time
-
- All Implemented Interfaces:
-
java.io.Serializable
,kotlin.Comparable
public interface Time implements Comparable<Time>, Serializable
Interface for time representation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Time.Companion
Standard values for Time.
-
Method Summary
Modifier and Type Method Description abstract Time
times(Double other)
Allows to multiply this Time for a constant. abstract Time
minus(Time other)
Allows to subtract a Time to this Time. abstract Time
plus(Time other)
Allows to add a Time to this Time. abstract Double
toDouble()
Allows to get a double representation of this Time. Boolean
isInfinite()
-
-
Method Detail
-
minus
abstract Time minus(Time other)
- Parameters:
other
- the time to subtract from the current Time- Returns:
the result of the subtraction
-
plus
abstract Time plus(Time other)
- Parameters:
other
- the time to sum to the current Time- Returns:
the result of the sum
-
toDouble
abstract Double toDouble()
Allows to get a double representation of this Time.
- Returns:
the double representation of this Time
-
isInfinite
Boolean isInfinite()
-
-
-
-