|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdom.Content
org.jdom.Element
verinec.netsim.loggers.events.Event
public class Event
The Event Element as described in the Events XML Schema.
| 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 | |
|---|---|
Event()
Creates a new Event Element |
|
Event(String time,
String node,
String layer,
String service)
Creates a new Event Element |
|
Event(String time,
String node,
String layer,
String service,
String src)
Creates a new Event Element |
|
Event(String time,
String node,
String layer,
String service,
String src,
String dst)
Creates a new Event Element |
|
| Method Summary | |
|---|---|
void |
addEvent(Event event)
logs an event |
void |
animate(DrawPanel drawPanel,
int time,
int substep,
int myPhase,
int totalPhase)
Alternates Events if they occur on the same location during the same periode of time. |
String |
getDescription()
gets the Event's description. |
String |
getDst()
gets the destination of the packet in an event with addressed communiction |
EventDetail |
getEventDetail()
gets the eventdetail element of this event. |
String |
getId()
gets the id of this event |
String |
getInterface()
gets the name of the interface(nic) where this event occured |
String |
getLayer()
gets the layer where the event happend |
String |
getNode()
gets the node where the event happend |
String |
getPacketId()
gets the id of the packed associated with this event |
String |
getService()
gets the service where the event happend |
String |
getSrc()
gets the source of the packet in an event with addressed communiction |
String |
getTime()
gets the time when the event happend |
void |
setDescription(String string)
sets the discrption the the Event. |
void |
setDst(String string)
sets the destination of the packet in an event with addressed communiction |
void |
setEventDetail(EventDetail event)
sets the eventdetail of this event. |
void |
setId(String id)
sets this Events ID. |
void |
setInterface(String iface)
sets the name of the interface(nic) where this event occured |
void |
setLayer(String string)
sets the layer where the event happend. |
void |
setNode(String string)
sets the node where the event happend |
void |
setPacketId(String packetid)
sets the packetid of a packed that can be related to this event |
void |
setService(String string)
sets the name of the service where the event happend |
void |
setSrc(String string)
sets the source of the packet in an event with addressed communiction |
void |
setTime(String i)
sets the time when the event happend |
String |
toString()
This returns the XML Representation of this Event |
| 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 |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
public Event()
public Event(String time,
String node,
String layer,
String service)
time - timestamp of this happendnode - node where the event happendlayer - layer on which the event happendservice - service or protocol that created the event
public Event(String time,
String node,
String layer,
String service,
String src)
time - timestamp of this eventnode - node where the event happendlayer - layer on which the event happendservice - service or protocol that created the eventsrc - Source Address for Events with addressed communication
public Event(String time,
String node,
String layer,
String service,
String src,
String dst)
time - timestamp of this eventnode - node where the event happendlayer - layer on which the event happendservice - service or protocol that created the eventsrc - Source Address for Events with addressed communicationdst - Destination Address for Events with addressed communication| Method Detail |
|---|
public EventDetail getEventDetail()
public void setEventDetail(EventDetail event)
event - a eventdetailpublic String getId()
public String getPacketId()
public String getDescription()
public String getDst()
public String getLayer()
public String getNode()
public String getService()
public String getSrc()
public String getTime()
public void setDescription(String string)
string - a descriptionpublic void setDst(String string)
string - the destination addresspublic void setLayer(String string)
string - a layerpublic void setNode(String string)
string - a nodepublic void setService(String string)
string - a servicepublic void setSrc(String string)
string - the source of the packet in an event with addressed
communictionpublic void setTime(String i)
i - a timepublic void setId(String id)
id - a IDpublic void setPacketId(String packetid)
packetid - a packet idpublic void addEvent(Event event)
ILogger
addEvent in interface ILoggerevent - an event to logILogger.addEvent(verinec.netsim.loggers.events.Event)public void setInterface(String iface)
iface - a interface(nic)public String getInterface()
public String toString()
toString in class ElementXMLOutputter.outputString(org.jdom.Element),
Element.toString()
public void animate(DrawPanel drawPanel,
int time,
int substep,
int myPhase,
int totalPhase)
throws NetSimException
drawPanel - the panel displaying the animationtime - Current simulation time.substep - Current substep.myPhase - Phase the event belongs to.totalPhase - Total number of events occurring at the same time and location.
NetSimException
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||