Module test
[hide private]
[frames] | no frames]

Module test

source code

Utilities for loading input files and generating and representing test cases.

Computer Systems Architecture Course Assignment 1 March 2016

Classes [hide private]
Location
Location(id, sensor_data)
Encounter
Encounter(time_point, devices)
DeviceTestData
DeviceTestData(id, locations, encounters)
ScriptTestData
ScriptTestData(time_point, device, location)
TestCase
Class representing a test case: various parameters and lists of devices and scripts.
TestParams
Class representing the parameters of a test case, as specified in test input files.
Variables [hide private]
  TESTCASE_NAME = 'name'
  NUM_DEVICES = 'num_nodes'
  NUM_LOCATIONS = 'num_locations'
  NUM_SCRIPTS = 'num_scripts'
  DURATION = 'duration'
  TIMEOUT_PERIOD = 'timeout'
  SCRIPTS_DELAY = 'scripts_delay'
  SCRIPT_SLEEP = 'script_sleep'
  PARALLEL_SCRIPT = 'parallel_script'
  OVERLAP = 'overlap'
  GEN_SEED = 'gen_seed'
  RUN_SEED = 'run_seed'
  EXTRA_DURATION = 'extra_duration'
  SCRIPT_ASSIGNMENT = 'script_assignment'
  SCRIPT_ASSIGNMENT_RANDOM = 'RANDOM'
  SCRIPT_ASSIGNMENT_ALL = 'ALL'
  SCRIPT_ASSIGNMENT_SINGLE = 'SINGLE'
  __package__ = None