
APT.all-test.Book-robot.clean-house.goto-unvisited-area.goto-gateway.elaborations.soar Maven / Gradle / Ivy
sp {goto-gateway*elaborate*current-gateway
(state ^name goto-gateway
^superstate.operator )
( ^name goto-gateway
^gateway )
-->
( ^current-gateway )
}
sp {goto-gateway*elaborate*xy*pos-true
(state ^name goto-gateway
^top-state.directions
^io.input-link.self.position
^current-gateway )
( ^value
^move-in-rectangle
^move-in-rectangle-delta pos)
( ^center
^direction )
( ^ )
-( ^ < )
-->
( ^move-direct-gateway true)
}
sp {goto-gateway*elaborate*xy*pos-false
(state ^name goto-gateway
^top-state.directions
^io.input-link.self.position
^current-gateway )
( ^value
^opposite
^move-in-rectangle
^move-in-rectangle-delta pos)
( ^center
^direction )
( ^ )
-( ^ >= )
-->
( ^move-direct-gateway false
^move-direction )
}
sp {goto-gateway*elaborate*xy*neg-true
(state ^name goto-gateway
^top-state.directions
^io.input-link.self.position
^current-gateway )
( ^value
^move-in-rectangle
^move-in-rectangle-delta neg)
( ^center
^direction )
( ^ )
-( ^ >= )
-->
( ^move-direct-gateway true)
}
sp {goto-gateway*elaborate*xy*neg-false
(state ^name goto-gateway
^top-state.directions
^io.input-link.self.position
^current-gateway )
( ^value
^opposite
^move-in-rectangle
^move-in-rectangle-delta neg)
( ^center
^direction )
( ^ )
-( ^ < )
-->
( ^move-direct-gateway false
^move-direction )
}
#############################
sp {goto-gateway*elaborate*move-y
(state ^name goto-gateway
^top-state.directions
^io.input-link.self.position
^current-gateway )
( ^value
^move-in-rectangle y
^move-in-rectangle-num )
( ^center
^direction )
( ^x )
( ^y
^x )
-->
( ^new-destination )
( ^x
^y (+ ))
}
sp {goto-gateway*elaborate*move-x
(state ^name goto-gateway
^top-state.directions
^io.input-link.self.position
^current-gateway )
( ^value
^move-in-rectangle x
^move-in-rectangle-num )
( ^center
^direction )
( ^y )
( ^x )
-->
( ^new-destination )
( ^x (+ )
^y )
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy