DRCL JavaSim API

drcl.inet.contract
Class NeighborEvent

java.lang.Object
  |
  +--drcl.comp.Contract
        |
        +--drcl.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

Inner 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
clone, equals, finalize, 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()
Overrides:
getName in class Contract

getContractContent

public java.lang.Object getContractContent()
Description copied from class: Contract
Returns the content of this contract (format?).
Overrides:
getContractContent in class Contract

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~