|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectikayaki.squid.Squid
public class Squid
Offers an interface for controlling the SQUID system. Reads settings from the Settings class. Creates instances of the degausser, handler and magnetometer classes and offers handles for them.
Field Summary | |
---|---|
private Degausser |
degausser
Instance of the degausser interface. |
private Handler |
handler
Instance of the handler interface. |
private static Squid |
instance
Instance of the Squid interface. |
private Magnetometer |
magnetometer
Instance of the magnetometer interface. |
private Project |
owner
The project that is currently using the Squid, or null if no project is using it. |
Constructor Summary | |
---|---|
private |
Squid()
Initializes the Squid interface. |
Method Summary | |
---|---|
Degausser |
getDegausser()
Returns an interface for controlling the degausser. |
Handler |
getHandler()
Returns an interface for controlling the handler. |
Magnetometer |
getMagnetometer()
Returns an interface for controlling the magnetometer. |
Project |
getOwner()
Returns project that is currently using the Squid. |
static Squid |
instance()
Returns a reference to the Squid. |
boolean |
isOK()
Checks whether all devices are working correctly. |
boolean |
setOwner(Project owner)
Sets the owner of the Squid. |
void |
updateSettings()
Checks which settings have changed and updates all the device interfaces. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Squid instance
private Project owner
private Degausser degausser
private Handler handler
private Magnetometer magnetometer
Constructor Detail |
---|
private Squid() throws IOException
IOException
Method Detail |
---|
public static Squid instance() throws IOException
IOException
public Degausser getDegausser()
public Handler getHandler()
public Magnetometer getMagnetometer()
public void updateSettings()
public boolean isOK()
public boolean setOwner(Project owner)
owner
- the project that will have exclusive access to the Squid. May be null.
public Project getOwner()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |