annas.graph
Class GraphEvent

java.lang.Object
  extended by annas.graph.GraphEvent

public class GraphEvent
extends java.lang.Object

Graph Event models All possible events that can occur on a Graph

Author:
Sam Wilson

Constructor Summary
GraphEvent()
          Default Constructor
GraphEvent(Event event, java.lang.Object[] params)
          Constructor
 
Method Summary
 Event getEvent()
          Gets the event
 java.lang.Object[] getParams()
          A list of objects in the same or as the parameters of the method that raised the event
 void setEvent(Event event)
           
 void setParams(java.lang.Object[] params)
          Sets the list of objects.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphEvent

public GraphEvent()
Default Constructor


GraphEvent

public GraphEvent(Event event,
                  java.lang.Object[] params)
Constructor

Parameters:
event - Event code
params - List of objects from the method which raised the event in the same order as the parameters in that method.
Method Detail

getEvent

public Event getEvent()
Gets the event

Returns:
the event

setEvent

public void setEvent(Event event)
Parameters:
event - the event to set

getParams

public java.lang.Object[] getParams()
A list of objects in the same or as the parameters of the method that raised the event

Returns:
the params

setParams

public void setParams(java.lang.Object[] params)
Sets the list of objects. The objects should be in the same order as the parameters of the method that raised the event

Parameters:
params - the params to set