|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFibre
class Fibre
The class Fibre contains methods to perform various operations relating to the position, theta angle, positioning offsets and associated astronomical object of a fibre.
Field Summary | |
---|---|
(package private) java.awt.Point |
FibrePosition
|
(package private) boolean |
lost
The fibre's lost flag |
(package private) int |
Number
|
(package private) AstronomyObject |
Object
The astonomy object associated with the fibre |
(package private) java.awt.Point |
PivotPosition
|
private java.awt.Point |
PreviousFibrePosition
|
private int |
State
|
private java.lang.String |
StateString
|
private java.lang.String |
TargetStatusString
|
private long |
Theta
|
private int |
Type
|
private java.lang.String |
TypeString
|
(package private) int |
xCreepOffset
The creep offset of the fibre. |
(package private) int |
xErrorOffset
The learned fibre placement offset |
(package private) int |
xFibreFinOffset
The fixed fibre fin offset |
(package private) int |
xPositionError
The positioning error of the fibre |
(package private) int |
yCreepOffset
|
(package private) int |
yErrorOffset
|
(package private) int |
yFibreFinOffset
|
(package private) int |
yPositionError
|
Constructor Summary | |
---|---|
Fibre()
|
|
Fibre(int FibreNumber)
|
Method Summary | |
---|---|
(package private) void |
extractFibreData(java.lang.String inputLine)
Extract fibre data from a line of data in the fibres.dat file |
private boolean |
fibresCollide(long pivot1x,
long pivot1y,
long fibre1x,
long fibre1y,
long pivot2x,
long pivot2y,
long fibre2x,
long fibre2y,
long button_width,
long button_length,
long tube_width)
Native method to determine whether fibres are colliding |
(package private) java.awt.Point |
getPreviousPosition()
Get the previous known position of the fibre |
(package private) int |
getState()
Get the state of the fibre |
(package private) java.lang.String |
getTargetStatus()
Get the target status of the fibre |
(package private) int |
getTheta()
Get the theta angle of the fibre in arcmins |
(package private) boolean |
hasObject()
Has the fibre got an object associated with it |
(package private) boolean |
isEnabled()
Is the fibre enabled |
(package private) boolean |
isGuide()
Is the fibre a guide fibre |
(package private) boolean |
isLost()
Is the fibre lost |
(package private) boolean |
isMissing()
Is the fibre missing/dead |
(package private) boolean |
isNotCollidingWith(Fibre anotherFibre,
FibreModule thisFibreModule)
Is the fibre not colliding with another fibre |
(package private) void |
setBroken()
Set the fibre as broken |
(package private) void |
setDisabled()
Set the fibre disabled |
(package private) void |
setEnabled()
Set the fibre enabled |
(package private) void |
setFound()
Set the fibre found |
(package private) void |
setLost()
Set the fibre lost |
(package private) void |
setMissing()
Set the fibre missing |
(package private) void |
setNotBroken()
Set the fibre as not brokem |
(package private) void |
setNotMissing()
Set the fibre not missing |
(package private) void |
setPosition(java.awt.Point thePosition)
Set the position |
(package private) void |
setPositionError(java.awt.Point theFibrePosition,
java.awt.Point theTargetPosition)
Set the position error |
private void |
setPreviousPosition()
Set the previous position |
private void |
setStateString(int theStatus)
Set the status of the fibre |
(package private) void |
setTargetStatus(java.lang.String targetPosition)
Set the target position |
private void |
setTypeString(int theType)
Set the type of the fibre |
java.lang.String |
toString()
Get a string representation of the fibre |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
int Number
private int State
private int Type
private java.lang.String TypeString
private java.lang.String StateString
private java.lang.String TargetStatusString
java.awt.Point PivotPosition
java.awt.Point FibrePosition
private java.awt.Point PreviousFibrePosition
private long Theta
int xPositionError
int yPositionError
int xErrorOffset
int yErrorOffset
int xFibreFinOffset
int yFibreFinOffset
int xCreepOffset
int yCreepOffset
boolean lost
AstronomyObject Object
Constructor Detail |
---|
Fibre()
Fibre(int FibreNumber)
Method Detail |
---|
private boolean fibresCollide(long pivot1x, long pivot1y, long fibre1x, long fibre1y, long pivot2x, long pivot2y, long fibre2x, long fibre2y, long button_width, long button_length, long tube_width)
pivot1x
- The x pivot position for fibre 1pivot1y
- The y pivot position for fibre 1fibre1x
- The x fibre position for fibre 1fibre1y
- The y fibre position for fibre 1pivot2x
- The x pivot position for fibre 2pivot2y
- The y pivot position for fibre 2fibre2x
- The x fibre position for fibre 2fibre2y
- The y fibre position for fibre 2button_width
- The width of the fibre buttonbutton_length
- The length of the fibre buttontube_width
- The width of the fibre tube
void extractFibreData(java.lang.String inputLine)
inputLine
- The line of fibre datavoid setTargetStatus(java.lang.String targetPosition)
targetPosition
- The target positionprivate void setStateString(int theStatus)
theStatus
- The status of the fibreprivate void setTypeString(int theType)
theType
- The fibre typevoid setPosition(java.awt.Point thePosition)
thePosition
- The positionvoid setPositionError(java.awt.Point theFibrePosition, java.awt.Point theTargetPosition)
theFibrePosition
- The actual position of the fibretheTargetPosition
- The target postion of the fibreprivate void setPreviousPosition()
void setEnabled()
void setDisabled()
void setNotBroken()
void setBroken()
void setNotMissing()
void setMissing()
void setLost()
void setFound()
boolean hasObject()
boolean isEnabled()
boolean isGuide()
boolean isLost()
boolean isMissing()
boolean isNotCollidingWith(Fibre anotherFibre, FibreModule thisFibreModule)
anotherFibre
- The other fibrethisFibreModule
- The fibre module
int getTheta()
java.lang.String getTargetStatus()
int getState()
java.awt.Point getPreviousPosition()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |