|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSetup
class Setup
The class Setup provides methods for commanding the robot to move fibres to a variety of target postions, such as parked, circled or user provided setup configurations.
Field Summary | |
---|---|
private boolean |
aborted
|
private int |
currentFibreNumber
|
private boolean[] |
FibreDone
|
private int |
SETUP_ITERATION_LOOPS
|
private Stopwatch |
setupTimer
|
Constructor Summary | |
---|---|
Setup()
|
Method Summary | |
---|---|
(package private) void |
abort()
Abort a setup |
(package private) void |
circleFibres(FibreModule theFibreModule)
Set all the fibres in a circle |
(package private) int |
getCurrentFibreNumber()
Get the number of the fibre currently being moved |
(package private) Fibre |
getNextFibre(FibreModule theFibreModule)
Get the next fibre to be moved in the setup |
(package private) double |
getPercentageProgress()
Get the setup progress as a percentage |
(package private) int |
getTimeLeft()
Get an estimate of the time left for the setup in seconds |
private java.lang.String |
getUnmovedFibres(FibreModule theFibreModule)
Get a list of unmoved fibres |
private boolean |
hasSetupDoneAllFibres(FibreModule theFibreModule)
Have all of the fibres been moved |
private void |
inititaliseFibreSetup(FibreModule theFibreModule)
Initialise the setup |
private boolean |
isFibreDone(Fibre theFibre)
Check whether a fibre has been moved |
private boolean |
isFibreDone(int FibreNumber)
Check whether a fibre has been moved |
(package private) void |
parkFibres(FibreModule theFibreModule)
Park all of the fibres in the fibre module |
private void |
parkUnmovedFibres(FibreModule theFibreModule)
Park all fibres that have not yet been moved |
private void |
setFibreDone(int FibreNumber)
Set the fibre done state |
(package private) void |
setupConfiguration(Configuration thisConfiguration,
FibreModule theFibreModule)
Setup a field configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean[] FibreDone
private final int SETUP_ITERATION_LOOPS
private int currentFibreNumber
private boolean aborted
private Stopwatch setupTimer
Constructor Detail |
---|
public Setup()
Method Detail |
---|
void setupConfiguration(Configuration thisConfiguration, FibreModule theFibreModule)
thisConfiguration
- The field configurationtheFibreModule
- The fibre modulevoid parkFibres(FibreModule theFibreModule)
theFibreModule
- The fibre modulevoid circleFibres(FibreModule theFibreModule)
theFibreModule
- The fibre modulevoid abort()
Fibre getNextFibre(FibreModule theFibreModule)
theFibreModule
- The fibre module
int getCurrentFibreNumber()
double getPercentageProgress()
int getTimeLeft()
private void setFibreDone(int FibreNumber)
FibreNumber
- The number of the fibreprivate void parkUnmovedFibres(FibreModule theFibreModule)
theFibreModule
- The fibre moduleprivate boolean hasSetupDoneAllFibres(FibreModule theFibreModule)
theFibreModule
- The fibre module
private java.lang.String getUnmovedFibres(FibreModule theFibreModule)
theFibreModule
- The fibre module
private boolean isFibreDone(Fibre theFibre)
theFibre
- The fibre
private boolean isFibreDone(int FibreNumber)
FibreNumber
- The number of the fibre
private void inititaliseFibreSetup(FibreModule theFibreModule)
theFibreModule
- The fibre module
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |