Public Member Functions | |
Degausser () throws SerialIOException | |
void | updateSettings () |
boolean | demagnetizeZ (double amp) |
boolean | demagnetizeY (double amp) |
boolean | isDemagnetizing () |
char | getRampStatus () |
int | getRamp () |
int | getDelay () |
char | getCoil () |
int | getAmplitude () |
boolean | isOK () |
void | serialIOEvent (SerialIOEvent event) |
Protected Member Functions | |
void | setCoil (char coil) |
void | setAmplitude (double amplitude) |
void | executeRampUp () |
void | executeRampDown () |
void | executeRampCycle () |
void | blockingWrite (String command) throws SerialIOException |
Protected Attributes | |
SerialIO | serialIO |
Private Attributes | |
Stack< String > | messageBuffer |
SynchronousQueue< String > | queue |
int | pollTimeout = 60 |
int | degausserDelay |
int | degausserRamp |
boolean | waitingForMessage = false |
double | minimumField |
double | maximumField |
boolean | demagnetizing = false |
Definition at line 38 of file Degausser.java.
|
Creates a new degausser interface. Opens connection to degausser COM port (if not open yet) and reads settings from the Setting class. Definition at line 76 of file Degausser.java. References ikayaki.squid.SerialIO.addSerialIOListener(), ikayaki.squid.Degausser.blockingWrite(), ikayaki.squid.Degausser.degausserDelay, ikayaki.squid.Degausser.degausserRamp, ikayaki.squid.Degausser.messageBuffer, ikayaki.squid.Degausser.queue, and ikayaki.squid.Degausser.serialIO. |
Here is the call graph for this function:
|
Here is the call graph for this function:
|
Performs full sequence to demagnetize Y (and X) coil with the given amplitude. Blocking method.
Definition at line 257 of file Degausser.java. References ikayaki.squid.Degausser.demagnetizing, ikayaki.squid.Degausser.executeRampCycle(), ikayaki.squid.Degausser.queue, ikayaki.squid.Degausser.setAmplitude(), ikayaki.squid.Degausser.setCoil(), and ikayaki.squid.Degausser.waitingForMessage. |
Here is the call graph for this function:
|
Performs full sequence to demagnetize Z coil with the given amplitude. Blocking method.
Definition at line 226 of file Degausser.java. References ikayaki.squid.Degausser.demagnetizing, ikayaki.squid.Degausser.executeRampCycle(), ikayaki.squid.Degausser.queue, ikayaki.squid.Degausser.setAmplitude(), ikayaki.squid.Degausser.setCoil(), and ikayaki.squid.Degausser.waitingForMessage. |
Here is the call graph for this function:
|
Performs Ramp up and down. Definition at line 191 of file Degausser.java. References ikayaki.squid.Degausser.blockingWrite(). Referenced by ikayaki.squid.Degausser.demagnetizeY(), and ikayaki.squid.Degausser.demagnetizeZ(). |
Here is the call graph for this function:
|
Brings Ramp down. Definition at line 180 of file Degausser.java. References ikayaki.squid.Degausser.blockingWrite(). |
Here is the call graph for this function:
|
Performs Ramp up. If this is used, make sure you Ramp down in less than 10 seconds because it can damage coil Definition at line 169 of file Degausser.java. References ikayaki.squid.Degausser.blockingWrite(). |
Here is the call graph for this function:
|
Sends amplitude query to degausser and returns answer. Blocking.
Definition at line 378 of file Degausser.java. References ikayaki.squid.Degausser.blockingWrite(), ikayaki.squid.Degausser.pollTimeout, ikayaki.squid.Degausser.queue, and ikayaki.squid.Degausser.waitingForMessage. |
Here is the call graph for this function:
|
Sends coil query to degausser and returns answer. Blocking.
Definition at line 356 of file Degausser.java. References ikayaki.squid.Degausser.blockingWrite(), ikayaki.squid.Degausser.pollTimeout, ikayaki.squid.Degausser.queue, and ikayaki.squid.Degausser.waitingForMessage. |
Here is the call graph for this function:
|
Sends delay query to degausser and returns answer. Blocking.
Definition at line 334 of file Degausser.java. References ikayaki.squid.Degausser.blockingWrite(), ikayaki.squid.Degausser.pollTimeout, ikayaki.squid.Degausser.queue, and ikayaki.squid.Degausser.waitingForMessage. |
Here is the call graph for this function:
|
Sends ramp query to degausser and returns answer. Blocking.
Definition at line 312 of file Degausser.java. References ikayaki.squid.Degausser.blockingWrite(), ikayaki.squid.Degausser.pollTimeout, ikayaki.squid.Degausser.queue, and ikayaki.squid.Degausser.waitingForMessage. |
Here is the call graph for this function:
|
Sends status query to degausser and returns answer. Blocking.
Definition at line 290 of file Degausser.java. References ikayaki.squid.Degausser.blockingWrite(), ikayaki.squid.Degausser.pollTimeout, ikayaki.squid.Degausser.queue, and ikayaki.squid.Degausser.waitingForMessage. |
Here is the call graph for this function:
|
Definition at line 281 of file Degausser.java. References ikayaki.squid.Degausser.demagnetizing. |
|
Checks if connection is ok.
Definition at line 401 of file Degausser.java. References ikayaki.squid.Degausser.serialIO. Referenced by ikayaki.squid.Squid.isOK(). |
|
Propagates serial port message event.
Implements ikayaki.squid.SerialIOListener. Definition at line 409 of file Degausser.java. References ikayaki.squid.SerialIOEvent.getCleanMessage(), ikayaki.squid.Degausser.messageBuffer, ikayaki.squid.Degausser.queue, and ikayaki.squid.Degausser.waitingForMessage. |
Here is the call graph for this function:
|
Sets amplitude to ramp, range 1.0 to maximumField. A value of 1.0 will actually be rounded to 1.1 which is the actual minimum amplitude of the degausser.
Definition at line 146 of file Degausser.java. References ikayaki.squid.Degausser.blockingWrite(), ikayaki.squid.Degausser.maximumField, and ikayaki.squid.Degausser.minimumField. Referenced by ikayaki.squid.Degausser.demagnetizeY(), and ikayaki.squid.Degausser.demagnetizeZ(). |
Here is the call graph for this function:
|
Sets coil X,Y,Z.
Definition at line 127 of file Degausser.java. References ikayaki.squid.Degausser.blockingWrite(). Referenced by ikayaki.squid.Degausser.demagnetizeY(), and ikayaki.squid.Degausser.demagnetizeZ(). |
Here is the call graph for this function:
|
Checks which settings have changed and updates the degausser interface. This method will be called by the Squid class. Definition at line 104 of file Degausser.java. References ikayaki.squid.Degausser.blockingWrite(), ikayaki.squid.Degausser.degausserDelay, and ikayaki.squid.Degausser.degausserRamp. |
Here is the call graph for this function:
|
1-9 seconds default delay 1 second Definition at line 59 of file Degausser.java. Referenced by ikayaki.squid.Degausser.Degausser(), and ikayaki.squid.Degausser.updateSettings(). |
|
(3, 5, 7, 9) default 3 Definition at line 64 of file Degausser.java. Referenced by ikayaki.squid.Degausser.Degausser(), and ikayaki.squid.Degausser.updateSettings(). |
|
Definition at line 70 of file Degausser.java. Referenced by ikayaki.squid.Degausser.demagnetizeY(), ikayaki.squid.Degausser.demagnetizeZ(), and ikayaki.squid.Degausser.isDemagnetizing(). |
|
Definition at line 68 of file Degausser.java. Referenced by ikayaki.squid.Degausser.setAmplitude(). |
|
buffer for incoming messages, readed when needed. Definition at line 43 of file Degausser.java. Referenced by ikayaki.squid.Degausser.Degausser(), and ikayaki.squid.Degausser.serialIOEvent(). |
|
Definition at line 67 of file Degausser.java. Referenced by ikayaki.squid.Degausser.setAmplitude(). |
|
Definition at line 49 of file Degausser.java. Referenced by ikayaki.squid.Degausser.getAmplitude(), ikayaki.squid.Degausser.getCoil(), ikayaki.squid.Degausser.getDelay(), ikayaki.squid.Degausser.getRamp(), and ikayaki.squid.Degausser.getRampStatus(). |
|
Synchronous queue for waiting result message from degausser Definition at line 48 of file Degausser.java. Referenced by ikayaki.squid.Degausser.blockingWrite(), ikayaki.squid.Degausser.Degausser(), ikayaki.squid.Degausser.demagnetizeY(), ikayaki.squid.Degausser.demagnetizeZ(), ikayaki.squid.Degausser.getAmplitude(), ikayaki.squid.Degausser.getCoil(), ikayaki.squid.Degausser.getDelay(), ikayaki.squid.Degausser.getRamp(), ikayaki.squid.Degausser.getRampStatus(), and ikayaki.squid.Degausser.serialIOEvent(). |
|
COM port for communication. Definition at line 54 of file Degausser.java. Referenced by ikayaki.squid.Degausser.blockingWrite(), ikayaki.squid.Degausser.Degausser(), and ikayaki.squid.Degausser.isOK(). |
|