isc.sensor
Class IPSumBean

java.lang.Object
  extended by isc.sensor.IPSumBean

public class IPSumBean
extends java.lang.Object

IP Summary Structure

Author:
John Casey
Project: DNA_sensor - Aug 12, 2005

Field Summary
 java.lang.String dstAddr
          destination address
 java.lang.Integer dstPort
          destination port - here for optimization
 java.sql.Timestamp firstPacketTime
          Time the first packet arrived
 java.util.Vector flags
          IP flags field
 java.lang.Integer ident
          IP ident field
 java.sql.Timestamp lastPacketTime
          Time the last packet arrived
 java.lang.Integer maxPktLen
          the maximum size of a packet in this flow
 java.lang.Integer maxTTL
          The maximum TTL in this flow
 java.lang.Long numPackets
          The number of packets in this flow
 java.lang.String packetInterface
          the Interface name that recieved this packet
 java.util.Vector packetTimes
          array listing each packet time offset from the start
 java.lang.String protoName
          protocol name
 java.lang.String sensorName
          the sensor that recieved this packt
 java.lang.String srcAddr
          source address
 java.lang.Integer srcPort
          source port - here for optimization
protected  int tempi
           
 java.lang.Long totalPktLen
          the totol sum of all packet lengths in this flow
 
Constructor Summary
IPSumBean()
          Create a new IP summary structure
IPSumBean(IPBean obj)
          Create a summary bean from the first IP bean
 
Method Summary
 void addPacket(IPBean obj)
          Add an IPBean to the summary
 java.lang.String flagsToString()
          Return the string version of the flags
protected  void initPacket(IPBean obj)
          Initialize a the summary with the first IP bean
 java.lang.String packetTimesToString()
          Return the string value of the packettime;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

firstPacketTime

public java.sql.Timestamp firstPacketTime
Time the first packet arrived


lastPacketTime

public java.sql.Timestamp lastPacketTime
Time the last packet arrived


packetTimes

public java.util.Vector packetTimes
array listing each packet time offset from the start


srcAddr

public java.lang.String srcAddr
source address


srcPort

public java.lang.Integer srcPort
source port - here for optimization


dstAddr

public java.lang.String dstAddr
destination address


dstPort

public java.lang.Integer dstPort
destination port - here for optimization


maxPktLen

public java.lang.Integer maxPktLen
the maximum size of a packet in this flow


totalPktLen

public java.lang.Long totalPktLen
the totol sum of all packet lengths in this flow


protoName

public java.lang.String protoName
protocol name


ident

public java.lang.Integer ident
IP ident field


flags

public java.util.Vector flags
IP flags field


maxTTL

public java.lang.Integer maxTTL
The maximum TTL in this flow


numPackets

public java.lang.Long numPackets
The number of packets in this flow


sensorName

public java.lang.String sensorName
the sensor that recieved this packt


packetInterface

public java.lang.String packetInterface
the Interface name that recieved this packet


tempi

protected int tempi
Constructor Detail

IPSumBean

public IPSumBean()
Create a new IP summary structure


IPSumBean

public IPSumBean(IPBean obj)
Create a summary bean from the first IP bean

Parameters:
obj - The IPBean
Method Detail

initPacket

protected void initPacket(IPBean obj)
Initialize a the summary with the first IP bean

Parameters:
obj -

addPacket

public void addPacket(IPBean obj)
Add an IPBean to the summary

Parameters:
obj - The IPBean to be added

packetTimesToString

public java.lang.String packetTimesToString()
Return the string value of the packettime;

Returns:
the packettime

flagsToString

public java.lang.String flagsToString()
Return the string version of the flags

Returns:
the flags