verinec.netsim.loggers.events
Class TCPEvent

java.lang.Object
  extended by org.jdom.Content
      extended by org.jdom.Element
          extended by verinec.netsim.loggers.events.EventDetail
              extended by verinec.netsim.loggers.events.UDPEvent
                  extended by verinec.netsim.loggers.events.TCPEvent
All Implemented Interfaces:
Serializable, Cloneable, Parent

public class TCPEvent
extends UDPEvent

Creates a TCP Event which is not related with TCP State change (e.g sending and recieving).

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

Field Summary
 
Fields inherited from class verinec.netsim.loggers.events.EventDetail
dHeight, dWidth, dx, dy, endX, endY, label, ownerPCNode, startX, startY
 
Fields inherited from class org.jdom.Element
additionalNamespaces, name, namespace
 
Fields inherited from class org.jdom.Content
parent
 
Constructor Summary
TCPEvent(String type)
          Creates a new tcp event element type
TCPEvent(String type, TCPPacket packet)
          Creates a new tcp event element type
 
Method Summary
 String getAck()
          gets the ackfield of a tcp packet logged in this event
 String getAge()
          gets the agefield of a tcp packet logged in this event
 String getFin()
          gets the fin flag of a tcp packet logged in this event
 String getPsh()
          gets the psh flag of a tcp packet logged in this event
 String getRst()
          gets the rst flag of a tcp packet logged in this event
 String getSeq()
          gets the sequnce number of a tcp packet logged in this event
 String getSyn()
          gets the syn flag of a tcp packet logged in this event
 String getUrg()
          gets the urg flag of a tcp packet logged in this event
 String getValid()
          gets the validity property of a tcp packet logged in this event
 String getWindowsize()
          gets the window size field of a tcp packet logged in this event
 void setAck(int ack)
          logs the ackfield of a tcp packet
 void setAge(int age)
          logs the agefield of a tcp packet
 void setFin(boolean fin)
          logs the fin flag of a tcp packet
 void setPsh(boolean psh)
          logs the psh flag of a tcp packet
 void setRst(boolean rst)
          logs the rst flag of a tcp packet
 void setSeq(int seq)
          logs the sequence number field of a tcp packet
 void setSyn(boolean syn)
          logs the syn flag of a tcp packet
 void setUrg(boolean urg)
          logs the urg flag of a tcp packet
 void setValid(boolean valid)
          logs the validity property of a tcp packet
 void setWindowsize(int windowsize)
          logs the window size field of a tcp packet
 
Methods inherited from class verinec.netsim.loggers.events.UDPEvent
createSimEvent, getDstAddress, getDstPort, getSrcAddress, getSrcPort, initializeLabel, setDstPort, setSrcPort, subanimate
 
Methods inherited from class verinec.netsim.loggers.events.EventDetail
animate, getType, initAnimation, isAnimationInitialized, setType, toString
 
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
 
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
 

Constructor Detail

TCPEvent

public TCPEvent(String type,
                TCPPacket packet)
Creates a new tcp event element type

Parameters:
type - a type the event type (e.g send or receive)
packet - a packet related to this event. this can be a sent or received packet

TCPEvent

public TCPEvent(String type)
Creates a new tcp event element type

Parameters:
type - a type the event type (e.g send or receive)
Method Detail

setAck

public void setAck(int ack)
logs the ackfield of a tcp packet

Parameters:
ack - the ackfield of a tcp packet logged in this event

getAck

public String getAck()
gets the ackfield of a tcp packet logged in this event

Returns:
the ackfield of a tcp packet logged in this event

setAge

public void setAge(int age)
logs the agefield of a tcp packet

Parameters:
age - the ackfield of a tcp packet logged in this event

getAge

public String getAge()
gets the agefield of a tcp packet logged in this event

Returns:
the agefield of a tcp packet logged in this event

setWindowsize

public void setWindowsize(int windowsize)
logs the window size field of a tcp packet

Parameters:
windowsize - the window size of a tcp packet logged in this event

getWindowsize

public String getWindowsize()
gets the window size field of a tcp packet logged in this event

Returns:
the window size field of a tcp packet logged in this event

setSeq

public void setSeq(int seq)
logs the sequence number field of a tcp packet

Parameters:
seq - the sequnce number of a tcp packet logged in this event

getSeq

public String getSeq()
gets the sequnce number of a tcp packet logged in this event

Returns:
the sequnce number of a tcp packet logged in this event

setFin

public void setFin(boolean fin)
logs the fin flag of a tcp packet

Parameters:
fin - the fin flag of a tcp packet logged in this event

getFin

public String getFin()
gets the fin flag of a tcp packet logged in this event

Returns:
the fin flag of a tcp packet logged in this event

setPsh

public void setPsh(boolean psh)
logs the psh flag of a tcp packet

Parameters:
psh - the psh flag of a tcp packet logged in this event

getPsh

public String getPsh()
gets the psh flag of a tcp packet logged in this event

Returns:
the psh flag of a tcp packet logged in this event

setRst

public void setRst(boolean rst)
logs the rst flag of a tcp packet

Parameters:
rst - the rst flag of a tcp packet logged in this event

getRst

public String getRst()
gets the rst flag of a tcp packet logged in this event

Returns:
the rst flag of a tcp packet logged in this event

setUrg

public void setUrg(boolean urg)
logs the urg flag of a tcp packet

Parameters:
urg - the urg flag of a tcp packet logged in this event

getUrg

public String getUrg()
gets the urg flag of a tcp packet logged in this event

Returns:
the urg flag of a tcp packet logged in this event

setSyn

public void setSyn(boolean syn)
logs the syn flag of a tcp packet

Parameters:
syn - the syn flag of a tcp packet logged in this event

getSyn

public String getSyn()
gets the syn flag of a tcp packet logged in this event

Returns:
the syn flag of a tcp packet logged in this event

setValid

public void setValid(boolean valid)
logs the validity property of a tcp packet

Parameters:
valid - the validity property of a tcp packet logged in this event

getValid

public String getValid()
gets the validity property of a tcp packet logged in this event

Returns:
the validity property of a tcp packet logged in this event

Copyright © 2005 Verinec, DIUF