Public Member Functions | |
Degausser | getDegausser () |
Handler | getHandler () |
Magnetometer | getMagnetometer () |
synchronized void | updateSettings () |
synchronized boolean | isOK () |
synchronized boolean | setOwner (Project owner) |
synchronized Project | getOwner () |
Static Public Member Functions | |
static synchronized Squid | instance () throws IOException |
Private Member Functions | |
Squid () throws IOException | |
Private Attributes | |
Project | owner |
Degausser | degausser |
Handler | handler |
Magnetometer | magnetometer |
Static Private Attributes | |
static Squid | instance |
Definition at line 35 of file Squid.java.
|
Initializes the Squid interface. Creates instances of Degausser, Handler and Magnetometer. Definition at line 73 of file Squid.java. References ikayaki.squid.Squid.degausser, ikayaki.squid.Squid.handler, ikayaki.squid.Squid.magnetometer, ikayaki.squid.Squid.owner, and ikayaki.squid.Handler.setUp(). Referenced by ikayaki.squid.Squid.instance(). |
Here is the call graph for this function:
|
Returns an interface for controlling the degausser.
Definition at line 101 of file Squid.java. Referenced by ikayaki.gui.MagnetometerStatusPanel.updateStatus(). |
|
Returns an interface for controlling the handler.
Definition at line 110 of file Squid.java. Referenced by ikayaki.squid.SquidFront.initRawActions(), and ikayaki.gui.MagnetometerStatusPanel.updateStatus(). |
|
Returns an interface for controlling the magnetometer.
Definition at line 119 of file Squid.java. Referenced by ikayaki.gui.MagnetometerStatusPanel.updateStatus(). |
|
Returns project that is currently using the Squid.
Definition at line 170 of file Squid.java. Referenced by ikayaki.Project.setSquid(). |
|
Returns a reference to the Squid. If it has not yet been created, will create one. Definition at line 65 of file Squid.java. References ikayaki.squid.Squid.instance, and ikayaki.squid.Squid.Squid(). |
Here is the call graph for this function:
|
Checks whether all devices are working correctly.
Definition at line 140 of file Squid.java. References ikayaki.squid.Squid.degausser, ikayaki.squid.Squid.handler, ikayaki.squid.Degausser.isOK(), and ikayaki.squid.Squid.magnetometer. Referenced by ikayaki.gui.MainViewPanel.MainViewPanel(), and ikayaki.squid.SquidFront.SquidFront(). |
Here is the call graph for this function:
|
Sets the owner of the Squid. Only one project may have access to the Squid at a time. This method may be called only from the Project class.
Definition at line 156 of file Squid.java. References ikayaki.Project.getState(), and ikayaki.Project.IDLE. Referenced by ikayaki.Project.setSquid(). |
Here is the call graph for this function:
|
Checks which settings have changed and updates all the device interfaces. This method should be called when changes are made to the device parameters. <p/> This method starts a worker thread that will update the settings. If the current project has a measurement running, the thread will keep on retrying until the measurement is finished. Multiple calls to this method within a short period of time will update the settings only once. Definition at line 131 of file Squid.java. |
|
Instance of the degausser interface. Definition at line 50 of file Squid.java. Referenced by ikayaki.squid.Squid.isOK(), and ikayaki.squid.Squid.Squid(). |
|
Instance of the handler interface. Definition at line 55 of file Squid.java. Referenced by ikayaki.squid.Squid.isOK(), and ikayaki.squid.Squid.Squid(). |
|
Instance of the Squid interface. Definition at line 40 of file Squid.java. Referenced by ikayaki.squid.Squid.instance(), ikayaki.gui.MainViewPanel.MainViewPanel(), and ikayaki.squid.SquidFront.SquidFront(). |
|
Instance of the magnetometer interface. Definition at line 60 of file Squid.java. Referenced by ikayaki.squid.Squid.isOK(), and ikayaki.squid.Squid.Squid(). |
|
The project that is currently using the Squid, or null if no project is using it. Definition at line 45 of file Squid.java. Referenced by ikayaki.squid.Squid.Squid(). |