|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcalculation.CalculationControl
public class CalculationControl
The Calculation -class maintains whole calculation package and the rest of this thread.
Field Summary | |
---|---|
private AirControl |
airControl
Current instance of AirControl class. |
private BuildTree |
buildTree
Current instance of BuildTree class. |
private DataCollection |
dataCollection
Current instance of DataCollection class. |
private FileController |
fileController
Current instance of FileController class. |
private boolean |
flagSystemTimer
Flag for running. |
private Graph |
graph
Current instance of Graph class. |
private int |
internalClock
Clock which represents passed time. |
private Parameters |
parameters
Current instance of Parameters class. |
private boolean |
testMode
Test mode. |
private int |
timerUpdateAirSpace
Counter for airspace. |
private int |
timerUpdateGraphics
Counter for graphics. |
private int |
timerUpdateMap
Counter for map. |
private int |
updateIntervalAirspace
How often should Airspace be updated. |
private int |
updateIntervalGraphics
How often should graphics be updated. |
private int |
updateIntervalMap
How often should Weather map and graph be updated. |
Constructor Summary | |
---|---|
CalculationControl(DataCollection dataCollection)
Construct Calculation -package and help classes, which are used when calculating weather, graph and paths for the Graphics -package. |
Method Summary | |
---|---|
boolean |
runTimer()
This method is called from Main-class after all classes are constructed. |
void |
setTestMode()
This method sets the test mode on for JUnit tests. |
void |
setTimerFlag(boolean flag)
Set timer's flag. |
private void |
startDelay()
Method pauses this thread for a second. |
private boolean |
update()
Method refresh system when thread comes back from sleep. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private AirControl airControl
private BuildTree buildTree
private DataCollection dataCollection
private FileController fileController
private boolean flagSystemTimer
private Graph graph
private int internalClock
private Parameters parameters
private boolean testMode
private int timerUpdateAirSpace
private int timerUpdateGraphics
private int timerUpdateMap
private int updateIntervalAirspace
private int updateIntervalGraphics
private int updateIntervalMap
Constructor Detail |
---|
public CalculationControl(DataCollection dataCollection)
dataCollection
- Current instance of dataCollection class.Method Detail |
---|
public boolean runTimer()
runTimer
in interface CalculationInterface
public void setTestMode()
public void setTimerFlag(boolean flag)
setTimerFlag
in interface CalculationInterface
flag
- Flag value.private void startDelay()
private boolean update()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |