|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.emn.reactiveinput.AbstractDevice fr.emn.reactiveinput.devices.DDirectMouse
Field Summary | |
Out |
but1
|
Out |
but2
|
Out |
but3
|
Out |
dx
|
Out |
dy
|
Out |
wheel
|
Fields inherited from class fr.emn.reactiveinput.AbstractDevice |
currIndex, ins, outs |
Fields inherited from interface fr.emn.reactiveinput.Device |
AUTO_PROPERTIES |
Constructor Summary | |
DDirectMouse()
|
Method Summary | |
void |
close()
Add closing code here if needed. |
void |
doDisable()
Add device disabling code here (does nothing by default). |
DeviceInfo |
getDeviceInfo()
|
boolean |
getDisableSystem()
|
boolean |
hasExternalInput()
Specifies whether this device has external (implicit) input or not. |
void |
init()
Initializes device's output values. |
Processor |
open(OpenContext context)
Check DirectMouse also. |
void |
setDisableSystem(boolean newDisableSystem)
|
void |
update()
Updates device's output values. |
Methods inherited from class fr.emn.reactiveinput.AbstractDevice |
addIn, addIn, addOut, copy, doEnable, finalize, getError, getIndex, getInfo, getIns, getName, getOuts, getProperties, hasExternalOutput, insertAt, insertAtEnd, insertBefore, isCopiable, isEnabled, isOpenable, setEnabled, setInfo, setInfo, setLastError, setName |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final Out dx
public final Out dy
public final Out but1
public final Out but2
public final Out but3
public final Out wheel
Constructor Detail |
public DDirectMouse()
Method Detail |
public DeviceInfo getDeviceInfo()
public boolean getDisableSystem()
public boolean hasExternalInput()
AbstractDevice
Return false if the device is deterministic from the data & time points of view, i.e. if its output production only depend on the explicit input history (input slots) and device's initial configuration. This is the case of most of the processing devices.
Return true if output values not only depend on the values of input slots, or if output production takes undefined time. Examples of devices with external input are input peripherals and asynchronous devices.
This method is used by the reactive machine to determine if this device is triggered by its input slots, or if it must be triggered continuously (i.e. each tick). This method can also be used by the editor for the device's graphical representation.
hasExternalInput
in interface Device
hasExternalInput
in class AbstractDevice
public Processor open(OpenContext context)
open
in interface Device
open
in class AbstractDevice
Processor
,
Device.open()
public void doDisable()
AbstractDevice
doDisable
in class AbstractDevice
public void close()
AbstractDevice
close
in interface Device
close
in class AbstractDevice
public void setDisableSystem(boolean newDisableSystem)
newDisableSystem
- booleanpublic void init()
AbstractDevice
Subclass init() and update() methods if you want the device to process the data itself. Otherwise, subclass getProcessor() method to use extern processors. By default, this method calls update(). Subclass this method if you'd like to make a specific initialization routine.
init
in interface Processor
init
in class AbstractDevice
Processor.init()
public void update()
AbstractDevice
Subclass init() and update() methods if you want the device to process the data itself. Otherwise, subclass getProcessor() method to use extern processors.
update
in interface Processor
update
in class AbstractDevice
Processor.update()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |