public class Inspcitem
extends java.lang.Object
typedef struct Inspcitem_t { int16 nrofBytes; int16 cmd; } Inspcitem;Depending on the command the item has some more bytes which can be recognized as children of the ByteDataAccess. The other possibility in C language my be: test and cast. But in C the C-translated version of this class and
ByteDataAccessBase
is used for too.
Modifier and Type | Class and Description |
---|---|
static class |
Inspcitem.Head
Access to head data.
|
static class |
Inspcitem.HeadOrder
The older form of items contains an order number to associate an answer item to its request.
|
Modifier and Type | Field and Description |
---|---|
static int |
kAnswerFieldMethod
Antwort auf Aufforderung zur Rueckgabe einer Liste von Attributen, Assoziationen oder Methoden.
|
static int |
kAnswerMsg |
static int |
kAnswerRegisterRepeat |
static int |
kAnswerRemoveMsgNok |
static int |
kAnswerRemoveMsgOk |
static int |
kAnswerValue |
static int |
kAnswerValueByIndex
, answer:
, +------head-8---------+-int-4-+-int-4-+---n-------+-int-4-+---n-------+
, |kAnswerValueByIndex | ixVal | types | values | types | values |
, +---------------------+-------+-------+-----------+-------+-----------+
First byte after head is the start index of variable for answer.
|
static int |
kAnswervaluedata
This item sets a value with a given position:
<@8+4#?
|
static int |
kFailedCommand |
static int |
kFailedPath |
static int |
kFailedRegisterRepeat |
static int |
kFailedValue |
static int |
kGetAddressByPath |
static int |
kGetFields
Request to get a list of all attributes and associations of the addressed Object.
|
static int |
kGetMsg
Request to get all messages
|
static int |
kGetValueByIndex |
static int |
kGetValueByPath |
static int |
kNoRessource |
static int |
kRegisterRepeat |
static int |
kRemoveMsg
Remove gotten messages.
|
static int |
kSetStringByPath
Sets a string value.
|
static int |
kSetValueByPath |
static int |
kSetvaluedata
This item sets a value with a given position:
<@8+4#?
|
Constructor and Description |
---|
Inspcitem() |
public static final int kGetFields
kAnswerFieldMethod
.public static final int kAnswerFieldMethod
kGetFields
or kGetMethods (not yet ready) for one field or one method.
For one request some more answer items are produced which were send all with one sequence number
maybe with more as one answer datagram with incremented InspcDatagram.SeqEntrant.answer()
number.
All that answer items are associated to the only one request.
Inspcitem.HeadOrder
following by a String. The String should be end with 0..3 zero-Bytes
for 4-byte-boundary (tolerable if not). The String has the following syntax (ZBNF)
nameType::= <*:?name> : <*:\[\.?type> [ \[\] | \[ <#?arrayLen> \] |] [\.\.\.].The String consists of two parts separated by a colon:name:type
. The type is given as String. It can have some additional information about array, container, sub struct. The type is the type of the reference. Note: If inheritance is used, the type of the associated instance can be an derived type which's fields and methods can be evaluated by an invocation of 16 with that path as address.
Examples for that syntax:
name:typ
: for simple fields.
name:typ...
: for a struct type. In the target system it may be a reference or a embedded structure in C.
name:typ[99]
: with the number of array elements if it is a static array with known number of elements.
name:typ[99]...
: Array of pointers or instances which are a struct.
name:typ[]
: Array with dynamic size or any other container. Its size ...TODO
public static final int kRegisterRepeat
public static final int kAnswerRegisterRepeat
public static final int kFailedRegisterRepeat
public static final int kGetValueByIndex
public static final int kAnswerValueByIndex
, answer: , +------head-8---------+-int-4-+-int-4-+---n-------+-int-4-+---n-------+ , |kAnswerValueByIndex | ixVal | types | values | types | values | , +---------------------+-------+-------+-----------+-------+-----------+
InspcDataExchangeAccess#kScalarTypes
. Especially thepublic static final int kAnswerValue
public static final int kFailedValue
public static final int kGetValueByPath
public static final int kGetAddressByPath
public static final int kSetValueByPath
public static final int kSetStringByPath
< inspcitem> <@+2#?strlen> <@+strlen$?value> <@a4> <@strlen..SIZE$?path> <@a4>
public static final int kGetMsg
, +------head-----------+ , |kGetMs | , +---------------------+, Answer:
, +------head-----------+---------+---------+---------+---------+
, |kAnswerMsg | Msg | Msg | Msg | Msg |
, +---------------------+---------+---------+---------+---------+
Any Message has 16 to 80 Bytes. The structure of a message is described with org.vishia.msgDispatch.InspcMsgDataExchg
.
This structure should be used as child. All values of the message are children of that child.
public static final int kAnswerMsg
public static final int kRemoveMsg
kGetMsg
contains all messages in a proper sequence order from..to. This Telegram removes the messages from..to sequence.
, Cmd:, +------head-----------+--int-----+--int-----+ , |kRemoveMsg | from seq | to seq | , +---------------------+----------+----------+, Answer:
, +------head-----------+ , |kAnswerRemoveMsg | , +---------------------+
public static final int kAnswerRemoveMsgOk
public static final int kAnswerRemoveMsgNok
public static final int kSetvaluedata
<@8+4#?position> <@12+4#?length> <@16..SIZE#?bitImageValue>The position may be a memory address which is known in the client proper to the target or it may be a relative offset in any target's data. The type of data is target-specific.
public static final int kAnswervaluedata
<@8+4#?position> <@12+4#?length> <@16..SIZE#?bitImageValue>The position may be a memory address which is known in the client proper to the target or it may be a relative offset in any target's data. The type of data is target-specific.
public static final int kFailedPath
public static final int kNoRessource
public static final int kFailedCommand