|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.ioModel.AbstractIOGroup
public abstract class AbstractIOGroup
Abstract base class for IO-groups.
| Constructor Summary | |
|---|---|
AbstractIOGroup(Controller controller,
String ioGroupName)
Creates a new IO Group. |
|
| Method Summary | |
|---|---|
protected void |
addAnalogOutput(String ioName,
com.kuka.roboticsAPI.ioModel.IOTypes ioType,
int bitSize,
double rangeStart,
double rangeEnd)
Adds an output to the list of supported outputs. |
protected void |
addDigitalOutput(String ioName,
com.kuka.roboticsAPI.ioModel.IOTypes ioType,
int bitSize)
Adds an output to the list of supported outputs. |
protected void |
addInput(String ioName,
com.kuka.roboticsAPI.ioModel.IOTypes ioType,
int bitSize)
Adds an input to the list of supported inputs. |
protected void |
addIO(AbstractIO io)
Adds an IO to the list of supported IOs. |
protected void |
addMockedAnalogOutput(String ioName,
com.kuka.roboticsAPI.ioModel.IOTypes ioType,
int bitSize,
double rangeStart,
double rangeEnd)
Adds an mocked output to the list of supported outputs. |
protected void |
addMockedDigitalOutput(String ioName,
com.kuka.roboticsAPI.ioModel.IOTypes ioType,
int bitSize)
Adds an mocked output to the list of supported outputs. |
protected void |
addMockedInput(String ioName,
com.kuka.roboticsAPI.ioModel.IOTypes ioType,
int bitSize,
Object initialValue)
Adds an input to the list of supported inputs. |
protected double |
getAnalogIOValue(String ioName,
boolean isOutput)
Reads an analog I/O. |
protected boolean |
getBooleanIOValue(String ioName,
boolean isOutput)
Reads an boolean I/O. |
Input |
getInput(String ioName)
Returns the Input class for the given IO name. |
Collection<Input> |
getInputs()
Returns a collection of inputs registered for this group. |
AbstractIO |
getIO(String ioName,
boolean isOutput)
Returns the AbstractIO class for the given IO name. |
String |
getIOGroupName()
gets the name of the IO-group. |
protected Long |
getNumberIOValue(String ioName,
boolean isOutput)
Reads an integer I/O. |
Output |
getOutput(String ioName)
Returns the Output class for the given IO name. |
Collection<Output> |
getOutputs()
Returns a collection of outputs registered for this group. |
protected void |
setAnalogOutput(String outputName,
double value)
Writes an analog output. |
protected void |
setDigitalOutput(String outputName,
boolean value)
Writes a boolean digital output. |
protected void |
setDigitalOutput(String outputName,
Number value)
Writes an integer digital output. |
protected void |
setMockedInput(String inputName,
Object value)
Sets the return value for a mocked input. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractIOGroup(Controller controller,
String ioGroupName)
controller - the controller.ioGroupName - name of the IO-group.| Method Detail |
|---|
public String getIOGroupName()
protected void addAnalogOutput(String ioName,
com.kuka.roboticsAPI.ioModel.IOTypes ioType,
int bitSize,
double rangeStart,
double rangeEnd)
ioName - name of the outputioType - type of the outputbitSize - bit size of the output.rangeStart - start of the analog rangerangeEnd - end of the analog range
protected void addDigitalOutput(String ioName,
com.kuka.roboticsAPI.ioModel.IOTypes ioType,
int bitSize)
ioName - name of the outputioType - type of the outputbitSize - bit size of the output.
protected void addMockedAnalogOutput(String ioName,
com.kuka.roboticsAPI.ioModel.IOTypes ioType,
int bitSize,
double rangeStart,
double rangeEnd)
ioName - name of the outputioType - type of the outputbitSize - bit size of the output.rangeStart - start of the analog rangerangeEnd - end of the analog range
protected void addMockedDigitalOutput(String ioName,
com.kuka.roboticsAPI.ioModel.IOTypes ioType,
int bitSize)
ioName - name of the outputioType - type of the outputbitSize - bit size of the output.
protected void addInput(String ioName,
com.kuka.roboticsAPI.ioModel.IOTypes ioType,
int bitSize)
ioName - name of the IOioType - type of the IObitSize - bit size of the IO.
protected void addMockedInput(String ioName,
com.kuka.roboticsAPI.ioModel.IOTypes ioType,
int bitSize,
Object initialValue)
ioName - name of the IOioType - type of the IObitSize - bit size of the IO.initialValue - initial value of the mocked input.
protected void setDigitalOutput(String outputName,
Number value)
outputName - name of the outputvalue - integer value to write
protected void setDigitalOutput(String outputName,
boolean value)
outputName - name of the outputvalue - boolean value to write
protected void setMockedInput(String inputName,
Object value)
inputName - name of the mocked input.value - return value to set.
protected void setAnalogOutput(String outputName,
double value)
outputName - name of the outputvalue - analog value to write
protected double getAnalogIOValue(String ioName,
boolean isOutput)
ioName - name of the I/OisOutput - true if I/O is an output.
protected boolean getBooleanIOValue(String ioName,
boolean isOutput)
ioName - name of the I/OisOutput - true if I/O is an output.
protected Long getNumberIOValue(String ioName,
boolean isOutput)
ioName - name of the I/OisOutput - true if I/O is an output.
protected void addIO(AbstractIO io)
io - the IO
public AbstractIO getIO(String ioName,
boolean isOutput)
ioName - the name of the ioisOutput - true, if the IO is an output
public Input getInput(String ioName)
ioName - the name of the input
public Output getOutput(String ioName)
ioName - the name of the output
public Collection<Input> getInputs()
public Collection<Output> getOutputs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||