All Packages Class Hierarchy This Package Previous Next Index
Class jcsp.util.ints.TimerInt
java.lang.Object
|
+----jcsp.lang.ints.ChannelDataStoreInt
|
+----jcsp.util.ints.TimerInt
- public class TimerInt
- extends ChannelDataStoreInt
Description
The TimerInt is an ChannelDataStoreInt which returns a int representing the
current time in milliseconds from the system clock.
The Timer is always FULL and discards any ints passed via put.
- Author:
- P.D.Austin
-
TimerInt()
-
-
clone()
- Returns a new Object with the same creation parameters as this Object.
-
get()
- Returns a int representing the current time in milliseconds.
-
getState()
- Returns the current state of the TimerInt (always returns FULL)
-
put(int)
- This method discards the int as writing to a TimerInt does not make
sense.
TimerInt
public TimerInt()
get
protected int get()
- Returns a int representing the current time in milliseconds.
- Returns:
- The current time in milliseconds
- Overrides:
- get in class ChannelDataStoreInt
put
protected void put(int value)
- This method discards the int as writing to a TimerInt does not make
sense.
- Parameters:
- The - value to put in the TimerInt
- Overrides:
- put in class ChannelDataStoreInt
getState
protected int getState()
- Returns the current state of the TimerInt (always returns FULL)
- Returns:
- The current state of the TimerInt
- Overrides:
- getState in class ChannelDataStoreInt
clone
protected Object clone()
- Returns a new Object with the same creation parameters as this Object.
This method should be overridden by subclasses to return a new Object
that is the same type as this Object. The new instance should be created
by constructing a new instance with the same parameters as the original.
NOTE: Only the sizes of the data should be cloned not the stored data.
- Returns:
- The cloned instance of this Object.
- Overrides:
- clone in class ChannelDataStoreInt
All Packages Class Hierarchy This Package Previous Next Index