|
1 | 1 | using LinearAlgebra, LazySets
|
2 |
| -using IntervalMDP, IntervalSySCoRe |
| 2 | +using IntervalMDP, IntervalMDPAbstractions |
3 | 3 |
|
4 | 4 | """
|
5 | 5 | InputRobot
|
6 | 6 |
|
7 | 7 | Input abstraction ONLY for the 2D robot example.
|
8 | 8 | """
|
9 |
| -struct InputRobot <: IntervalSySCoRe.InputAbstraction |
| 9 | +struct InputRobot <: IntervalMDPAbstractions.InputAbstraction |
10 | 10 | input_space::Hyperrectangle
|
11 | 11 | ranges::NTuple{2,Real}
|
12 | 12 | end
|
13 |
| -IntervalSySCoRe.numinputs(input::InputRobot) = prod(input.ranges) |
14 |
| -IntervalSySCoRe.issetbased(input::InputRobot) = false |
15 |
| -function IntervalSySCoRe.inputs(input::InputRobot) |
| 13 | +IntervalMDPAbstractions.numinputs(input::InputRobot) = prod(input.ranges) |
| 14 | +IntervalMDPAbstractions.issetbased(input::InputRobot) = false |
| 15 | +function IntervalMDPAbstractions.inputs(input::InputRobot) |
16 | 16 | l = low(input.input_space)
|
17 | 17 | h = high(input.input_space)
|
18 | 18 | ranges = [LinRange(l, h, num_steps) for (l, h, num_steps) in zip(l, h, input.ranges)]
|
@@ -87,7 +87,7 @@ function robot_2d_decoupled(
|
87 | 87 |
|
88 | 88 | upper_bound_spec = Specification(system_property(spec), !satisfaction_mode(spec))
|
89 | 89 | upper_bound_spec =
|
90 |
| - IntervalSySCoRe.convert_specification(upper_bound_spec, state_abs, target_model) |
| 90 | + IntervalMDPAbstractions.convert_specification(upper_bound_spec, state_abs, target_model) |
91 | 91 |
|
92 | 92 | return mdp, abstract_spec, upper_bound_spec
|
93 | 93 | end
|
@@ -118,7 +118,7 @@ function robot_2d_direct(
|
118 | 118 |
|
119 | 119 | upper_bound_spec = Specification(system_property(spec), !satisfaction_mode(spec))
|
120 | 120 | upper_bound_spec =
|
121 |
| - IntervalSySCoRe.convert_specification(upper_bound_spec, state_abs, target_model) |
| 121 | + IntervalMDPAbstractions.convert_specification(upper_bound_spec, state_abs, target_model) |
122 | 122 |
|
123 | 123 | return mdp, abstract_spec, upper_bound_spec
|
124 | 124 | end
|
|
0 commit comments