Table of Contents

Class: StreamsLogInput sam/StreamsLogInput.py

Handles parsing the STREAMSLOG file associated with the NETLOG file.

Purpose: Parses the STREAMSLOG file for a list of Streams contained in it.

Used by: Model

Uses: Stream, CustomError

Attributes: None

SRS Refs: 3.2.1.1, 3.2.1.5

Author: rihoward

Date: 11/7/02

Methods   
__init__
parse
  __init__ 
__init__ ( self,  filename )

Purpose: Creates a new instance of the class StreamsLogInput, given a filename of the STREAMSLOG file.

Used by: Model

Uses: None

Input: filename : string

Output: New instance of the StreamsLogInput class

Preconditions: Filename must be that of the corresponding STREAMSLOG file.

Postconditions: None

SRS Refs: 3.2.1.1, 3.2.1.5

Author: rihoward

Date: 11/7/02

  parse 
parse ( self )

Purpose: Parses the STREAMSLOG file, returning a list of Stream objects, and also adding in the aggregate stream, making sure it gets a unique id.

Used by: Model

Uses: CustomError, Stream

Input: None

Output: parse : Stream[]

Preconditions: None

Postconditions: None

SRS Refs: 3.2.1.1, 3.2.1.5

Author: rihoward

Date: 11/7/02

Exceptions   
CustomError, "Different streams with the same stream ID!!"
CustomError, "File not STREAMSLOG 1.0 or missing header"
IOError, "File specified is not a file or does not exist."

Table of Contents

This document was automatically generated on Wed Oct 30 23:04:21 2002 by HappyDoc version 2.0