Difference between revisions of "TagStreamerArchitecture"

From RifidiWiki

Jump to: navigation, search
(Data Objects)
(class PathItems)
Line 29: Line 29:
 
* ArrayList of PathItems
 
* ArrayList of PathItems
  
===class PathItems===  
+
===class PathItem===  
 
* field ID (tells the position of this PathItem in the array)
 
* field ID (tells the position of this PathItem in the array)
 
* class TimeObject  
 
* class TimeObject  
* PathEntity Object  
+
* PathEntity Object
  
 
===abstract class PathEntity===  
 
===abstract class PathEntity===  

Revision as of 20:19, 21 January 2008

Load XML Handler

This is loading the needed Information form the XML Files. This consists of three different Files:

  • The Scenario,
  • The Components
  • The InputData

It will have a main load-method() taking in three filenames

Component Manager

The ComponentManager is a universal Class for creating the Components and keeping track of them. You can get the instances of the readers by asking the componentManager. He will create the reader if needed or returning a connected instance to the reader.

Processor

Is the executing part. It runs the Scenarios by calling the processdata methods and doing the timing coming along with the pathItems. For doing that it needs to be a thread which can be interrupted at certain points.

Command Interface

This is providing the user with the commands

  • start
  • stop
  • pause (implement later on)
  • resume (implement later on)
  • clean
  • load

Data Objects

class Scenario

  • field ID
  • field numOfRuns
  • ArrayList of PathItems

class PathItem

  • field ID (tells the position of this PathItem in the array)
  • class TimeObject
  • PathEntity Object

abstract class PathEntity

  • reference TimeObject
  • method processdata(batchitem)

class ReaderEntitiy extend PathEntity

  • reference to the UIReader
  • override the processdata() method

class GPIListernEntity extend PathEntity

  • reference to the UIReader
  • override the processdata() method

class timeObject implements observer

  • Reference to SuspendableTimer
  • method start
  • method stop
  • method suspend
  • method resume
  • field min value
  • field max value
  • field (boolean) random
  • set Observer

class InputData

  • list of BatchItems

class BatchItem

  • field ID
  • field trigger (boolean)
  • field time (think about that)
  • list of tags
Personal tools