DRCL J-Sim API

drcl.inet.contract
Class NeighborEvent

java.lang.Object
  extended bydrcl.comp.Contract
      extended bydrcl.inet.contract.NeighborEvent

public class NeighborEvent
extends Contract

The NeighborEvent contract. This contract defines the object format in a neighbor event (neighbor-up/neighbor-down). The event object is a message consisting of

  1. the index of the interface where this event occurs (int), and
  2. the neighbor information (NetAddress).

Version:
1.0, 10/17/2000
Author:
Hung-ying Tyan
See Also:
NetAddress

Nested Class Summary
static class NeighborEvent.Message
           
 
Field Summary
static NeighborEvent INSTANCE
           
 
Fields inherited from class drcl.comp.Contract
Role_INITIATOR, Role_PEER, Role_REACTOR
 
Constructor Summary
NeighborEvent()
           
NeighborEvent(int role_)
           
 
Method Summary
 java.lang.Object getContractContent()
          Returns the content of this contract (format?).
 java.lang.String getName()
           
 
Methods inherited from class drcl.comp.Contract
getRole, match, setRole
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final NeighborEvent INSTANCE
Constructor Detail

NeighborEvent

public NeighborEvent()

NeighborEvent

public NeighborEvent(int role_)
Method Detail

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

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~