org.gjt.universe.notification
Class StationNotification

java.lang.Object
  |
  +--org.gjt.universe.notification.Notification
        |
        +--org.gjt.universe.notification.StationNotification

public class StationNotification
extends Notification

This Notification subclass is used for notifications posted by Station objects. The primary purpose of this class is to have all the Station specific notification names in their own file rather than having one massive file mixing in all the notification names from all objects. However, if at a future date we'd like to embed additional information in Station notification objects, this can be accomplished by adding instance variables and accessor methods.

Author:
Allan Noordvyk (noordvyk@home.com)

Field Summary
static java.lang.String CREATED
           
static java.lang.String ELIMINATED
           
static java.lang.String MODULES_CHANGED
           
static java.lang.String MOVED
           
static java.lang.String NAME_CHANGED
           
static java.lang.String OWNER_CHANGED
           
 
Fields inherited from class org.gjt.universe.notification.Notification
 
Constructor Summary
StationNotification(java.lang.String name, StationBase sendingStation)
          This is the designated constructor which should be used to create instances of this class.
 
Method Summary
 StationBase getSendingStation()
          This simply returns the sending object cast to be a Station.
 
Methods inherited from class org.gjt.universe.notification.Notification
getName, getSender, post, post
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATED

public static java.lang.String CREATED

ELIMINATED

public static java.lang.String ELIMINATED

MOVED

public static java.lang.String MOVED

MODULES_CHANGED

public static java.lang.String MODULES_CHANGED

NAME_CHANGED

public static java.lang.String NAME_CHANGED

OWNER_CHANGED

public static java.lang.String OWNER_CHANGED
Constructor Detail

StationNotification

public StationNotification(java.lang.String name,
                           StationBase sendingStation)
This is the designated constructor which should be used to create instances of this class.

Parameters:
name - The name (i.e. type) of the notification.
sendingStation - The Station sending the notification.
Method Detail

getSendingStation

public StationBase getSendingStation()
This simply returns the sending object cast to be a Station.



Copyright © 2001 Universe Dev Team All Rights Reserved.