20 package com.generalrobotix.ui.view.graph;
35 totalTime_ =
new Time();
36 timeStep_ =
new Time();
37 viewUpdateStep_ =
new Time();
38 currentTime_ =
new Time();
39 startTime_ =
new Time();
50 currentTime_ =
new Time(0,0);
51 startTime_ =
new Time(0,0);
59 totalTime_ =
new Time(totalTime);
60 timeStep_ =
new Time(timeStep);
61 viewUpdateStep_ =
new Time(viewUpdateStep);
62 currentTime_ =
new Time(0,0);
63 startTime_ =
new Time(0,0);
67 totalTime_.
set(time.totalTime_);
68 timeStep_.
set(time.timeStep_);
69 viewUpdateStep_.
set(time.viewUpdateStep_);
70 currentTime_.
set(time.currentTime_);
71 startTime_.
set(time.startTime_);
78 public boolean inc() {
79 currentTime_.
add(timeStep_);
80 if (currentTime_.msec_ > totalTime_.msec_) {
81 currentTime_.
set(totalTime_);
83 }
else if (currentTime_.msec_ == totalTime_.msec_) {
84 if (currentTime_.usec_ > totalTime_.usec_) {
85 currentTime_.
set(totalTime_);
102 currentTime_.
set(time);
106 totalTime_.
set(time);
114 viewUpdateStep_.
set(time);
SimulationTime(double totalTime, double timeStep, double viewUpdateStep)
void setCurrentTime(double time)
void setTimeStep(double time)
SimulationTime(Time totalTime, Time timeStep, Time viewUpdateStep)
void setTotalTime(double time)
void setStartTime(double time)
double getViewUpdateStep()
void setViewUpdateStep(double time)