|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectds.ov2.util.Protocol
public class Protocol
Runtime representation of a protocol of the OV-chip protocol layer.
One protocol consists of a fixed list of steps (of type Protocol_step
) that must be executed in the given order.
Besides the protocol steps every protocol instance must contain its
protocol identification number. This identification number must be
identical to the index at which this instance is stored in the
protocol array. Normally this is initialized in the right way by
Registered_protocols.set_protocols
.
Under normal circumstances the protocol instances are created and referenced in the *_description classes, which are generated by the IDL compiler. These classes are shared between the card and the host driver. It is important that the protocol instances on the host and the card are identical, otherwise the protocol layer will not work.
Field Summary | |
---|---|
byte |
protocol_id
The protocol identification number. |
Protocol_step[] |
steps
All steps of this protocol. |
Constructor Summary | |
---|---|
Protocol(Protocol_step[] steps)
Create a new protocol instance, consisting of the steps in steps . |
Method Summary | |
---|---|
void |
set_result_sizes()
Update the cached length of the declared results in all steps. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public byte protocol_id
Registered_protocols.set_protocols
. In the constructor of this
class the protocol id is initialized to -1, to provoke an error
in the Host_protocol
constructor
if the protocol is used without being linked in
some protocols array.
public final Protocol_step[] steps
Constructor Detail |
---|
public Protocol(Protocol_step[] steps)
steps
. The field protocol_id
is initialized to
the invalid value -1. It must receive its value later, normally
in Registered_protocols.set_protocols
.
steps
- the stepsMethod Detail |
---|
public void set_result_sizes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |