|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.emn.reactiveinput.AbstractDevice
fr.emn.reactiveinput.AbstractMutableDevice
fr.emn.reactiveinput.devices.DInertia
| Field Summary | |
In |
grab
|
Out |
grab_out
|
In |
in
|
Out |
out
|
Out |
speed_out
|
| Fields inherited from class fr.emn.reactiveinput.AbstractDevice |
currIndex, ins, outs |
| Fields inherited from interface fr.emn.reactiveinput.Device |
AUTO_PROPERTIES |
| Constructor Summary | |
DInertia()
|
|
| Method Summary | |
double |
getFriction()
|
double |
getMinSpeed()
|
Slot[] |
getMutationTriggers()
Returns the mutation triggers for this mutable device, i.e. all input or output slots that trigger a mutation when it is connected to another type. |
boolean |
getRoundValues()
|
double |
getSpeedSmoothing()
|
boolean |
hasExternalInput()
Specifies whether this device has external (implicit) input or not. |
void |
init()
Initializes device's output values. |
void |
mutate()
Perform a mutation on this device. |
void |
setFriction(double slidingFriction)
|
void |
setMinSpeed(double minSpeed)
|
void |
setRoundValues(boolean roundValues)
|
void |
setSpeedSmoothing(double speedSmoothing)
|
void |
update()
Updates device's output values. |
| Methods inherited from class fr.emn.reactiveinput.AbstractMutableDevice |
addMutableIn, addMutableIn, addMutableIn, addMutableOut, addMutableOut, remove |
| Methods inherited from class fr.emn.reactiveinput.AbstractDevice |
addIn, addIn, addOut, close, copy, doDisable, doEnable, finalize, getError, getIndex, getInfo, getIns, getName, getOuts, getProperties, hasExternalOutput, insertAt, insertAtEnd, insertBefore, isCopiable, isEnabled, isOpenable, open, setEnabled, setInfo, setInfo, setLastError, setName |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.emn.reactiveinput.Device |
close, copy, getError, getInfo, getIns, getName, getOuts, getProperties, hasExternalOutput, isCopiable, isOpenable, open, setEnabled |
| Field Detail |
public final In grab
public final In in
public final Out grab_out
public final Out out
public final Out speed_out
| Constructor Detail |
public DInertia()
| Method Detail |
public boolean hasExternalInput()
DeviceReturns 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 trues if output values do 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 DevicehasExternalInput in class AbstractDevicepublic Slot[] getMutationTriggers()
AbstractMutableDevice
getMutationTriggers in interface MutableDevicegetMutationTriggers in class AbstractMutableDevicepublic void mutate()
AbstractMutableDeviceAdd mutation code here.
mutate in interface MutableDevicemutate in class AbstractMutableDevicepublic void init()
AbstractDeviceSubclass 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 Processorinit in class AbstractDeviceProcessor.init()public void update()
AbstractDeviceSubclass 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 Processorupdate in class AbstractDeviceProcessor.update()public double getSpeedSmoothing()
public void setSpeedSmoothing(double speedSmoothing)
speedSmoothing - The speedSmoothing to set.public boolean getRoundValues()
public void setRoundValues(boolean roundValues)
roundValues - The roundValues to set.public double getFriction()
public void setFriction(double slidingFriction)
slidingFriction - The slidingFriction to set.public double getMinSpeed()
public void setMinSpeed(double minSpeed)
minSpeed - The minSpeed to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||