IsoSurface Rendering of an AR Representation

rlaramee
Class ProcessTimer

java.lang.Object
  |
  +--rlaramee.ProcessTimer

public class ProcessTimer
extends java.lang.Object

Description: This class is responsible for all of the timing functions needed for the program.

start date Wed 15 Nov 2000

Version:
1.0
Author:
Robert S Laramee
See Also:
Display.java

Field Summary
private  int beginMinute
           
private  float beginSecond
           
private  int endMinute
           
private  float endSecond
           
private  java.util.Calendar timer
           
 
Constructor Summary
ProcessTimer()
          constructor
 
Method Summary
 boolean beginTimer()
          Starts the timer running
private  boolean computeTotalTime()
           
 boolean endTimer()
          Ends the timer
private  float getBeginSecond()
           
private  float getEndSecond()
           
private  java.util.Calendar getTimer()
           
private  void setBeginSecond(float minute, float second, float millisecond)
           
private  void setEndSecond(float minute, float second, float millisecond)
           
private  boolean setTimer(java.util.Calendar calendar)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

beginMinute

private int beginMinute

endMinute

private int endMinute

beginSecond

private float beginSecond

endSecond

private float endSecond

timer

private java.util.Calendar timer
Constructor Detail

ProcessTimer

public ProcessTimer()
constructor
Method Detail

getTimer

private java.util.Calendar getTimer()
Returns:
the Calendar timer object

setTimer

private boolean setTimer(java.util.Calendar calendar)
Parameters:
a - new BinaryCubeReader's timer object
Returns:
TRUE if the set was successful

getBeginSecond

private float getBeginSecond()
Returns:
the second when the timer started

setBeginSecond

private void setBeginSecond(float minute,
                            float second,
                            float millisecond)
Parameters:
the - second when the timer started

getEndSecond

private float getEndSecond()
Returns:
the second when the timer ended

setEndSecond

private void setEndSecond(float minute,
                          float second,
                          float millisecond)
Parameters:
the - second when the timer ended

beginTimer

public boolean beginTimer()
Starts the timer running

Returns:
TRUE if it's started

endTimer

public boolean endTimer()
Ends the timer

Returns:
TRUE if it's ended

computeTotalTime

private boolean computeTotalTime()
Returns:
TRUE if the total time was computed

IsoSurface Rendering of an AR Representation