__init__ (
self,
streamid=None,
destad=None,
destport=None,
sourcead=None,
sourceport=None,
is_agg=0,
)
Purpose: Creates a new instance of the Stream class, given
the id number, destination address, destination
port, source address and source port (all default
to be None), and whether the stream is an aggregate
(default to no (0) if not given). Used by: StreamsLogInput
Uses: CustomError
Input: streamid : integer or None,
destad : string or None,
destport : integer or None,
sourcead : string or None,
sourceport : integer or None,
is_agg : 0 or 1
Output: New instance of the class Stream
Preconditions: None
Postconditions: The created class will be a valid Stream
object.
SRS Refs: 3.2.1.5
Author: mayadm
Date: 24/7/02
|
Exceptions
|
|
CustomError, "Error - destport must be Integer or None"
CustomError, "Error - is_agg input must be integer"
CustomError, "Error - sourceport must be Integer or None"
|
|