groupmgmt.impl
Class BeaconEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bygroupmgmt.impl.BeaconEvent
All Implemented Interfaces:
java.io.Serializable

class BeaconEvent
extends java.util.EventObject

The BeaconEvent class; An event passed to a BeaconListener when a new MemberBeacon is received. Stores the MemberBeaconObject and the BeaconReceiver that generated the event.

Based on the beacon package by Ali Hazemi.

Version:
July 2003
Author:
Christine Julien, Tom Elgin
See Also:
BeaconReceiver, BeaconListener

Field Summary
private  MemberBeacon beacon
          The beacon object.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BeaconEvent(BeaconReceiver beaconReceiver, MemberBeacon beacon)
          Construct a BeaconEvent.
 
Method Summary
 MemberBeacon getBeacon()
          Accessor to the MemberBeacon.
 java.lang.String toString()
          Get a String representation of this event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

beacon

private MemberBeacon beacon
The beacon object.

Constructor Detail

BeaconEvent

public BeaconEvent(BeaconReceiver beaconReceiver,
                   MemberBeacon beacon)
Construct a BeaconEvent.

Parameters:
beaconReceiver - The BeaconReceiver generating the event.
beacon - The MemberBeacon to include.
Method Detail

getBeacon

public MemberBeacon getBeacon()
Accessor to the MemberBeacon.

Returns:
The MemberBeacon associated with this event.

toString

public java.lang.String toString()
Get a String representation of this event.

Returns:
The beacon's String representation.