Prism.framework
Class ArchitectureEvent

java.lang.Object
  |
  +--Prism.util.EventObject
        |
        +--Prism.framework.ArchitectureEvent

public class ArchitectureEvent
extends EventObject

Architecture events are used to notify any interested gauges about events that affect the structure of the system or a sub system.

Version:
0.1
Author:
Nikunj Mehta, Marija Rakic

Field Summary
 long id
          a unique identifier for the event
 java.lang.String name
          a name for the event
 
Constructor Summary
ArchitectureEvent(Address source, java.lang.String name)
          Constructor
ArchitectureEvent(Address source, java.lang.String name, int descriptorCount)
          Constructor
 
Method Summary
 void addEventDescriptor(int index, java.lang.Object descriptor)
          adds an event descriptor.
 java.lang.Object getEventDescriptor(int index)
          Returns event descriptor at a given index.
 java.lang.Object[] getEventDescriptors()
          Returns event descriptors.
 
Methods inherited from class Prism.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public long id
a unique identifier for the event

name

public java.lang.String name
a name for the event
Constructor Detail

ArchitectureEvent

public ArchitectureEvent(Address source,
                         java.lang.String name)
Constructor
Parameters:
source - Source of the event.
name - Name of the event.

ArchitectureEvent

public ArchitectureEvent(Address source,
                         java.lang.String name,
                         int descriptorCount)
Constructor
Parameters:
source - Source of the event.
name - Name of the event.
descriptorCount - Number of parameters describing the event.
Method Detail

getEventDescriptors

public java.lang.Object[] getEventDescriptors()
Returns event descriptors.

addEventDescriptor

public void addEventDescriptor(int index,
                               java.lang.Object descriptor)
adds an event descriptor.
Parameters:
index - Index of the event descriptor to be added.
descriptor - Object descriptor.

getEventDescriptor

public java.lang.Object getEventDescriptor(int index)
Returns event descriptor at a given index.
Parameters:
index - Index of the desired descriptor.