Skip to content

Commit

Permalink
Merge pull request #458 from JuliaReach/schillic/441
Browse files Browse the repository at this point in the history
#441 - Support for reset assignments
  • Loading branch information
schillic authored Feb 15, 2019
2 parents e7802be + 3530e70 commit 33467e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ReachSets/DiscretePost/DiscretePost.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,18 @@ end

# --- default methods for handling assignments ---

# default implementation: use 'apply' from MathematicalSystems
function apply_assignment(𝒫::DiscretePost,
constrained_map::AbstractMap,
R⋂G::LazySet;
kwargs...)
return apply(constrained_map, R⋂G)
end

# for reset maps: return a lazy ResetMap from LazySets
function apply_assignment(𝒫::DiscretePost,
constrained_map::ConstrainedResetMap,
R⋂G::LazySet;
kwargs...)
return LazySets.ResetMap(R⋂G, constrained_map.dict)
end

0 comments on commit 33467e6

Please sign in to comment.