VR-Link JAVA API Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
List of all members | Public Member Functions | Private Attributes
com.mak.vrlj.vl.Clock Class Reference

A clock which tracks simulation time. More...

+ Collaboration diagram for com.mak.vrlj.vl.Clock:

Public Member Functions

int hashCode ()
boolean equals (Object obj)
double elapsedRealTime ()
double getApproxElapsedRealTime ()
double getInitialTime ()
double getSimTime ()
boolean isSimTimeSet ()
void setApproxElapsedRealTime (double approxElapsedRealTime)
void setInitialTime (double initialTime)
void setSimTime (double simTime)
 Set the current simulation time.

Private Attributes

double myInitialTime = 0.0
double mySimTime = 0.0
double myApproxElapsedRealTime = 0.0
boolean mySimTimeSet = false

Detailed Description

A clock which tracks simulation time.

Member Function Documentation

double com.mak.vrlj.vl.Clock.elapsedRealTime ( )
inline
Returns
the elapsed real time since this clock was created, in seconds, based on System.nanoTime()

Referenced by com.mak.vrlj.example.listen.Listen.main().

boolean com.mak.vrlj.vl.Clock.equals ( Object  obj)
inline
double com.mak.vrlj.vl.Clock.getApproxElapsedRealTime ( )
inline
Returns
the approximate elapsed real time since this clock was created, in seconds.

References com.mak.vrlj.vl.Clock.myApproxElapsedRealTime.

double com.mak.vrlj.vl.Clock.getInitialTime ( )
inline
Returns
the initial simulation time.

References com.mak.vrlj.vl.Clock.myInitialTime.

double com.mak.vrlj.vl.Clock.getSimTime ( )
inline
int com.mak.vrlj.vl.Clock.hashCode ( )
inline
boolean com.mak.vrlj.vl.Clock.isSimTimeSet ( )
inline
Returns
true if the simulation time has been set, otherwise false.

References com.mak.vrlj.vl.Clock.mySimTimeSet.

void com.mak.vrlj.vl.Clock.setApproxElapsedRealTime ( double  approxElapsedRealTime)
inline
Parameters
approxElapsedRealTimethe approximate elapsed real time in seconds.

References com.mak.vrlj.vl.Clock.myApproxElapsedRealTime.

void com.mak.vrlj.vl.Clock.setInitialTime ( double  initialTime)
inline
Parameters
initialTimethe initial simulation time.

References com.mak.vrlj.vl.Clock.myInitialTime.

void com.mak.vrlj.vl.Clock.setSimTime ( double  simTime)
inline

Set the current simulation time.

Parameters
simTimethe current simulation time.

References com.mak.vrlj.vl.Clock.mySimTime, and com.mak.vrlj.vl.Clock.mySimTimeSet.

Referenced by com.mak.vrlj.example.talk.Talk.main(), com.mak.vrlj.example.listen.Listen.main(), and com.mak.vrlj.example.f18.F18.main().

Member Data Documentation

double com.mak.vrlj.vl.Clock.myApproxElapsedRealTime = 0.0
private
double com.mak.vrlj.vl.Clock.myInitialTime = 0.0
private
double com.mak.vrlj.vl.Clock.mySimTime = 0.0
private
boolean com.mak.vrlj.vl.Clock.mySimTimeSet = false
private

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)