コード例 #1
0
 def setUp(self):
     self.condition_types = create_road_condition_types([
         'Test-Type-1', 'Test-Type-2', 'Test-Type-3', 'Test-Type-4',
         'Test-Type-5'
     ])
     self.conditions = create_road_conditions([
         'Test-Condition-1', 'Test-Condition-2', 'Test-Condition-3',
         'Test-Condition-4', 'Test-Condition-5'
     ], self.condition_types)
     self.instrument_systems = create_instrument_systems(
         ['Test-Sys-1', 'Test-Sys-2', 'Test-Sys-3'])
     self.rc_action_goals = create_road_condition_action_goals(
         ['Test-Goal-1', 'Test-Goal-2', 'Test-Goal-3'])
     self.rc_actions = create_road_condition_actions(
         ['Test-RCA-1', 'Test-RCA-2', 'Test-RCA-3'], self.rc_action_goals,
         self.instrument_systems[0])
     self.rs_types = create_road_segment_types(
         ['Test-Type-1', 'Test-Type-2', 'Test-Type-3'])
     self.folder_types = create_folder_types(
         ['Test-Type-1', 'Test-Type-2', 'Test-Type-3'])
     self.folders = create_folders(['Test-1', 'Test-2', 'Test-3'],
                                   self.folder_types)
     self.scenarios = create_scenarios(
         ['Test-Scenario-1', 'Test-Scenario-2', 'Test-Scenario-3'],
         self.folders)
     self.road_segments = create_road_segments(
         ['Test-Segment-1', 'Test-Segment-2', 'Test-Segment-3'],
         self.scenarios, self.rs_types)
コード例 #2
0
 def setUp(self):
     self.instrument_types = create_instrument_types([
         'Test-Type-1', 'Test-Type-2', 'Test-Type-3'])
     self.instrument_systems = create_instrument_systems([
         'Test-Sys-1', 'Test-Sys-2', 'Test-Sys-3'])
     self.instruments = create_instruments([
         'Test-Instr-1', 'Test-Instr-2', 'Test-Instr-3'],
         self.instrument_types[0], self.instrument_systems[0])
     self.instrument_actions = create_instrument_actions(self.instruments)
     self.rc_action_goals = create_road_condition_action_goals([
         'Test-Goal-1', 'Test-Goal-2', 'Test-Goal-3'])
     self.rc_actions = create_road_condition_actions([
         'Test-RCA-1', 'Test-RCA-2', 'Test-RCA-3'],
         self.rc_action_goals, self.instrument_systems[0])
     create_rca_to_ia(self.rc_actions, self.instrument_actions)
     self.condition_types = create_road_condition_types([
         'Test-Type-1', 'Test-Type-2', 'Test-Type-3'])
     self.conditions = create_road_conditions([
         'Test-Condition-1', 'Test-Condition-2', 'Test-Condition-3'],
         self.condition_types)
     create_rc_to_rca(self.conditions, self.rc_actions)
     self.constraint_types = \
         create_constraint_types([
             'Type-1', 'Type-2', 'Type-3'])
     self.constraints = create_constraints([
         'Constraint-1', 'Constraint-2', 'Constraint-3'],
         self.constraint_types)
コード例 #3
0
 def setUp(self):
     self.folder_types = create_folder_types(
         ['Test-Type-1', 'Test-Type-2', 'Test-Type-3'])
     self.folders = create_folders(['Test-1', 'Test-2', 'Test-3'],
                                   self.folder_types)
     self.scenarios = create_scenarios([
         'Test-Scenario-1', 'Test-Scenario-2', 'Test-Scenario-3'],
         self.folders)
     self.segment_types = create_road_segment_types([
         'Test-Type-1', 'Test-Type-2', 'Test-Type-3'])
     self.segments = create_road_segments([
         'Test-Name-1', 'Test-Name-2', 'Test-Name-3'], self.scenarios,
         self.segment_types)
     self.condition_types = create_road_condition_types([
         'Test-Type-1', 'Test-Type-2'])
     self.conditions = create_road_conditions([
         'Test-Condition-1', 'Test-Condition-2'], self.condition_types)
コード例 #4
0
 def setUp(self):
     self.condition_types = create_road_condition_types(
         ['Test-Type-1', 'Test-Type-2', 'Test-Type-3'])
     self.conditions = create_road_conditions(
         ['Test-Condition-1', 'Test-Condition-2', 'Test-Condition-3'],
         self.condition_types)