All Packages Class Hierarchy This Package Previous Next Index
Class com.arcsinc.hardwarehost.DataCmd
java.lang.Object
|
+----com.arcsinc.hardwarehost.HdwCmd
|
+----com.arcsinc.hardwarehost.DataCmd
- public class DataCmd
- extends HdwCmd
The DataCmd
class provides the mechanism to
encapsulate data commands. The data command structure is
flexible. It is used for any command which either sends,
receives, or sends and receives data to the hardware
application. Either int
(s) or float
(s)
can be sent or received. Note, the data types cannot be fixed
with an action (int and float cannot be sent to the hardware in
the same command; however, int can be sent and float can be
received t and float can be
received in the same command). The size of data to be sent is
dynamically determined; the size of the data to be received can
be either dynamically determined or fixed per the designers
wishes. If the hardware application cannot handle the command as
sent, it will simply dispose of the command and take no action.
- See Also:
- HdwCmd
-
FLOAT
- Data is type
float
.
-
INT
- Data is type
int
.
-
NONE
- There is no data expected.
-
DataCmd()
- Default constructor.
-
DataCmd(char)
- A constructor which only sets the command value.
-
DataCmd(char, float[])
- A constructor which instantiates a command for sending
float
data, no data will be received.
-
DataCmd(char, int[])
- A constructor which instantiates a command for sending
int
data, no data will be received.
-
DataCmd(char, int[], float[], boolean, char, int)
- The general purpose constructor which instantiates a command
for sending and receiving data.
-
getDataIoFloat()
- Get the value of dataIoFloat.
-
getDataIoInt()
- Get the value of dataIoInt.
-
getDataRtnSize()
- Get the value of dataRtnSize.
-
getDynamicDataSizeRtn()
- Get the value of dynamicDataSizeRtn.
-
getRtnType()
- Get the value of rtnType.
-
setDataIoFloat(float[])
- Set the value of dataIoFloat.
-
setDataIoInt(int[])
- Set the value of dataIoInt.
-
setDataRtnSize(int)
- Set the value of dataRtnSize.
-
setDynamicDataSizeRtn(boolean)
- Set the value of dynamicDataSizeRtn.
-
setRtnType(char)
- Set the value of rtnType.
FLOAT
public static final char FLOAT
- Data is type
float
.
INT
public static final char INT
- Data is type
int
.
NONE
public static final char NONE
- There is no data expected.
DataCmd
public DataCmd()
- Default constructor.
DataCmd
public DataCmd(char cmd)
- A constructor which only sets the command value.
- Parameters:
- cmd - the command value.
DataCmd
public DataCmd(char cmd,
int dataIoInt[])
- A constructor which instantiates a command for sending
int
data, no data will be received.
- Parameters:
- cmd - the command value.
- dataIoInt - the
int
to be sent.
DataCmd
public DataCmd(char cmd,
float dataIoFloat[])
- A constructor which instantiates a command for sending
float
data, no data will be received.
- Parameters:
- cmd - the command value.
- dataIoFloat - the
float
to be sent.
- the float
to be sent.
DataCmd
public DataCmd(char cmd,
int dataIoInt[],
float dataIoFloat[],
boolean dynamicDataSizeRtn,
eRtn,
char rtnType,
int dataRtnSize)
- The general purpose constructor which instantiates a command
for sending and receiving data.
- Parameters:
- cmd - the command value.
- dataIoInt - the
float
to be sent.
- dataIoFloat - the
float
to be sent.
- dynamicDataSizeRtn -
true
if the return size
needs to be determined as the data is being received from the
hardware.
- rtnType - set to {
INT
| FLOAT
|
NONE
}
- dataRtnSize - number of
int
or
float
to return if dynamicDataSizeRtn
is false
.
getDataRtnSize
public int getDataRtnSize()
- Get the value of dataRtnSize.
- Returns:
- Value of dataRtnSize.
setDataRtnSize
public void setDataRtnSize(int v)
- Set the value of dataRtnSize.
- et the value of dataRtnSize.
- Parameters:
- v - Value to assign to dataRtnSize.
getDynamicDataSizeRtn
public boolean getDynamicDataSizeRtn()
- Get the value of dynamicDataSizeRtn.
- Returns:
- Value of dynamicDataSizeRtn.
setDynamicDataSizeRtn
public void setDynamicDataSizeRtn(boolean v)
- Set the value of dynamicDataSizeRtn.
- Parameters:
- v - Value to assign to dynamicDataSizeRtn.
getRtnType
public char getRtnType()
- Get the value of rtnType.
- Returns:
- Value of rtnType.
setRtnType
public void setRtnType(char v)
- Set the value of rtnType.
- Parameters:
- v - Value to assign to rtnType.
getDataIoInt
public int[] getDataIoInt()
- Get the value of dataIoInt.
- Returns:
- Value of dataIoInt.
setDataIoInt
public void setDataIoInt(int v[])
re>
public void setDataIoInt(int v[])
- Set the value of dataIoInt.
- Parameters:
- v - Value to assign to dataIoInt.
getDataIoFloat
public float[] getDataIoFloat()
- Get the value of dataIoFloat.
- Returns:
- Value of dataIoFloat.
setDataIoFloat
public void setDataIoFloat(float v[])
- Set the value of dataIoFloat.
- Parameters:
- v - Value to assign to dataIoFloat.
All Packages Class Hierarchy This Package Previous Next Index