verinec.netsim.loggers.events
Class Events

java.lang.Object
  extended by org.jdom.Content
      extended by org.jdom.Element
          extended by verinec.netsim.loggers.events.Events
All Implemented Interfaces:
Serializable, Cloneable, Parent
Direct Known Subclasses:
Logger

public class Events
extends Element

Events is the Element that is used as a wrapper around all the Event Elements.

Version:
$Revision:835 $
Author:
Dominik Jungo
See Also:
Serialized Form

Nested Class Summary
private  class Events.EventTimeComparator
           
 
Field Summary
private static long serialVersionUID
           
 
Fields inherited from class org.jdom.Element
additionalNamespaces, name, namespace
 
Fields inherited from class org.jdom.Content
parent
 
Constructor Summary
Events()
          Creates an empty Events Element
Events(String repository, String stoptime)
          Creates a new Events Element with the header children.
 
Method Summary
 void addEvent(Event event)
          adds an Event Element to the Events
 List getEventList()
          gets the List of Event Elements in this Element
 IVerinecRepository getRepository()
          gets the repository containig the network configuration
 String getRepositoryName()
          gets the name of the repository containig the network configuration
 double getStopTime()
          gets the stop time for this simulation
 void setRepositoryName(String name)
          sets the name of the repository containig the network configuration
 void setStopTime(double stopTime)
          sets the stop time for this simulation
 
Methods inherited from class org.jdom.Element
addContent, addContent, addContent, addContent, addContent, addNamespaceDeclaration, clone, cloneContent, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getChild, getChild, getChildren, getChildren, getChildren, getChildText, getChildText, getChildTextNormalize, getChildTextNormalize, getChildTextTrim, getChildTextTrim, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespaceURI, getQualifiedName, getText, getTextNormalize, getTextTrim, getValue, indexOf, isAncestor, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttribute, setAttribute, setAttributes, setContent, setContent, setContent, setContent, setName, setNamespace, setText, toString
 
Methods inherited from class org.jdom.Content
detach, equals, getDocument, getParent, getParentElement, hashCode, setParent
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jdom.Parent
getDocument, getParent
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Events

public Events()
Creates an empty Events Element


Events

public Events(String repository,
              String stoptime)
Creates a new Events Element with the header children. Makes the node belong to a document...

Parameters:
repository - the repository which belongs to these events
stoptime - the stoptime of the simulation belonging to these events
Method Detail

addEvent

public void addEvent(Event event)
adds an Event Element to the Events

Parameters:
event - an Event

getEventList

public List getEventList()
gets the List of Event Elements in this Element

Returns:
the List of Event Elements in this Element

getRepositoryName

public String getRepositoryName()
gets the name of the repository containig the network configuration

Returns:
the name of the repository containig the network configuration

setRepositoryName

public void setRepositoryName(String name)
sets the name of the repository containig the network configuration

Parameters:
name - name of the repository

getStopTime

public double getStopTime()
gets the stop time for this simulation

Returns:
the stop time for this simulation

setStopTime

public void setStopTime(double stopTime)
sets the stop time for this simulation

Parameters:
stopTime - the stop time for this simulation

getRepository

public IVerinecRepository getRepository()
                                 throws VerinecException
gets the repository containig the network configuration

Returns:
the repository containig the network configuration
Throws:
VerinecException - if the Repository can't be opened

Copyright © 2005 Verinec, DIUF