Sleepbot.com Java Classes

com.sleepbot.WRLDtime.cron
Class WRLDcronTick

java.lang.Object
  extended bycom.sleepbot.WRLDtime.cron.WRLDcronTick

public class WRLDcronTick
extends java.lang.Object

A class which snapshots a single 'tick' (eg. time code) from the WRLDcron chronometer.
 
This class contains all the information necessary to determine the full granularity of a WRLDtime code at a given instant. Nearly all of the methods provided by this class are direct parallels of WRLDcron object methods.
 
version 1.3 - 01Jan05 - Daniel M Foley
version 1.2 - 19Nov00 - Daniel M Foley


Constructor Summary
WRLDcronTick(WRLDcron cron)
          Constructs a new WRLDtime tick.
 
Method Summary
 long getBeat()
          Returns the beat of the tick's converted time
 
 int getBeatLength()
          Returns the number of digits in the tick's beat
 
 java.util.Date getDate()
          Returns the date at which this tick was created
 
 long getMeasure()
          Returns the measure of the tick's converted time
 
 int getMeasureLength()
          Returns the number of digits in the tick's measure
 
 long getTime()
          Returns the tick's converted time
 
 int getTimeLength()
          Returns the number of digits in the tick's full time code
 
 WRLDcron getWRLDcron()
          Returns the WRLDcron from object which this tick was generated
 
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WRLDcronTick

public WRLDcronTick(WRLDcron cron)
Constructs a new WRLDtime tick.
 

Parameters:
cron - the WRLDcron object from which to create the snapshot.
Method Detail

getWRLDcron

public WRLDcron getWRLDcron()
Returns the WRLDcron from object which this tick was generated
 

Returns:
the WRLDcron object from which the snapshot was created.

getTime

public long getTime()
Returns the tick's converted time
 

See Also:
WRLDcron.getTime()

getBeat

public long getBeat()
Returns the beat of the tick's converted time
 

See Also:
WRLDcron.getBeat()

getMeasure

public long getMeasure()
Returns the measure of the tick's converted time
 

See Also:
WRLDcron.getMeasure()

getTimeLength

public int getTimeLength()
Returns the number of digits in the tick's full time code
 

See Also:
WRLDcron.getTimeLength()

getBeatLength

public int getBeatLength()
Returns the number of digits in the tick's beat
 

See Also:
WRLDcron.getBeatLength()

getMeasureLength

public int getMeasureLength()
Returns the number of digits in the tick's measure
 

See Also:
WRLDcron.getMeasureLength()

getDate

public java.util.Date getDate()
Returns the date at which this tick was created
 

See Also:
WRLDcron.getDate()

toString

public java.lang.String toString()
Returns a String representation of this object.
 

Returns:
a String representation of this object.

Sleepbot.com Java Classes

Copyright 1995-..   Lookit the Cat Productions