public final class

IntegerTime

extends Object
implements Time
java.lang.Object
   ↳ uk.ac.imperial.presage2.core.IntegerTime

Summary

Public Constructors
IntegerTime()
IntegerTime(int time)
Public Methods
Time clone()
boolean equals(Object obj)
boolean equals(Time t)
Check if two times are equal.
boolean greaterThan(Time t)
int hashCode()
void increment()
Increment this time to the next discrete time value.
int intValue()
Get this time as an integer value.
void setTime(Time t)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface uk.ac.imperial.presage2.core.Time

Public Constructors

public IntegerTime ()

public IntegerTime (int time)

Public Methods

public Time clone ()

public boolean equals (Object obj)

Since: API Level

public boolean equals (Time t)

Check if two times are equal.

Returns
  • true if both Times represent the same discrete simulation time.
See Also
  • uk.ac.imperial.presage2.core.Time#equals()

public boolean greaterThan (Time t)

public int hashCode ()

Since: API Level

public void increment ()

Increment this time to the next discrete time value.

See Also

public int intValue ()

Get this time as an integer value. Used to determine quantities of time ticks.

Returns
  • value of this time as an integer.

public void setTime (Time t)

public String toString ()

Since: API Level