drcl.inet.contract
Class DatagramContract
java.lang.Object
drcl.comp.Contract
drcl.inet.contract.DatagramContract
- public class DatagramContract
- extends Contract
The datagram sending/delivery contract.
This contract defines the data exchange formats between two protocol layers
that use datagrams. Specifically, the contract defines the following message format:
- the packet to be sent (
Object),
- the source address (
long),
- the destination address (
long),
- the port (
int), and
- the type of service (
long).
When sending a datagram, one may specify the source address as
Address.NULL_ADDR to have the lower
layer to put in an appropriate address for the upper layer.
|
Method Summary |
java.lang.Object |
getContractContent()
Returns the content of this contract (format?). |
java.lang.String |
getName()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final DatagramContract INSTANCE
DatagramContract
public DatagramContract()
DatagramContract
public DatagramContract(int role_)
getName
public java.lang.String getName()
- Specified by:
getName in class Contract
getContractContent
public java.lang.Object getContractContent()
- Description copied from class:
Contract
- Returns the content of this contract (format?).
- Specified by:
getContractContent in class Contract
Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved. ~ To J-Sim Home ~