public interface

Time

implements Cloneable
uk.ac.imperial.presage2.core.Time
Known Indirect Subclasses

Class Overview

This is a generic representation of a time within the simulation. Using this representation allows more complex time structures to be used rather than just discrete integer time.

Summary

Nested Classes
class Time.Bind Provides various AbstractModules to bind different types of Time
Public Methods
abstract Time clone()
Clone this time
abstract boolean equals(Time t)
Check if two times are equal.
abstract boolean greaterThan(Time t)
abstract void increment()
Increment this time to the next discrete time value.
abstract int intValue()
Get this time as an integer value.
abstract void setTime(Time t)
abstract String toString()

Public Methods

public abstract Time clone ()

Clone this time

Returns
  • clone of this time.

public abstract boolean equals (Time t)

Check if two times are equal.

Returns
  • true if both Times represent the same discrete simulation time.

public abstract boolean greaterThan (Time t)

Parameters
t time to compare to.
Returns
  • true if this > t, false otherwise

public abstract void increment ()

Increment this time to the next discrete time value.

public abstract 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 abstract void setTime (Time t)

public abstract String toString ()