public class UnitGatePort extends UnitInputPort
Modifier and Type | Field and Description |
---|---|
static double |
THRESHOLD |
Constructor and Description |
---|
UnitGatePort(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
checkAutoDisable()
Called by UnitGenerator when an envelope reaches the end of its contour.
|
boolean |
checkGate(int i)
This is called by UnitGenerators.
|
boolean |
isAutoDisableEnabled() |
boolean |
isOff() |
void |
off() |
void |
off(TimeStamp timeStamp) |
void |
on() |
void |
on(TimeStamp timeStamp) |
void |
setAutoDisableEnabled(boolean autoDisableEnabled)
Request the containing UnitGenerator be disabled when checkAutoDisabled() is called.
|
void |
setupAutoDisable(UnitGenerator unit) |
void |
trigger() |
void |
trigger(TimeStamp timeStamp) |
connect, connect, connect, connect, disconnect, disconnect, get, getConnectablePart, getDefault, getMaximum, getMinimum, getPortBlockPart, isValueAdded, makeParts, printConnections, pullData, set, set, set, set, set, set, setDefault, setMaximum, setMinimum, setup, setup, setValueAdded, setValueInternal
disconnectAll, disconnectAll, get, getNumParts, getValue, getValue, getValues, getValues, isConnected, isConnected, setValueInternal
getName, getUnitGenerator, queueCommand, scheduleCommand, setName, setUnitGenerator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getNumParts, getUnitGenerator, getValue
public static final double THRESHOLD
public void on()
public void off()
public void off(TimeStamp timeStamp)
public void on(TimeStamp timeStamp)
public void trigger()
public void trigger(TimeStamp timeStamp)
public boolean checkGate(int i)
i
- public boolean isOff()
public boolean isAutoDisableEnabled()
public void setAutoDisableEnabled(boolean autoDisableEnabled)
autoDisableEnabled
- public void checkAutoDisable()
public void setupAutoDisable(UnitGenerator unit)