struct Novika::Resolver::Response
- Novika::Resolver::Response
- Struct
- Value
- Object
Overview
A mutable response object which is tightly coupled to Session
,
designed for reuse throughout multiple (rounds of) queries to
the latter.
Included Modules
Defined in:
novika/resolver.crConstructors
Instance Method Summary
-
#accepted_set : ResolutionSet
Joins all accepted resolution sets of this response into one large resolution set, and returns it.
-
#drop_wish(& : RunnableQuery -> )
Yields wishes from this response's wishlist, then clears the wishlist (so that this response can perhaps be reused).
-
#each_ignored_runnable(& : Runnable -> )
Yields runnables that were ignored.
-
#each_rejected_runnable(& : Runnable -> )
Yields runnables that were rejected.
-
#queried_for_set : ResolutionSet
Joins all queried-for accepted resolution sets of this response into one large resolution set, and returns it.
-
#receive(signal : Signal)
Receives and reacts to a signal sent by
RunnableRoot
. -
#successful? : Bool
Returns whether this response is successful, in that it has no rejected runnables.
-
#wishless? : Bool
Returns
true
if this response does not "wish" to make any more queries before its accepted sets can be inspected.
Instance methods inherited from module Novika::Resolver::SignalReceiver
receive(signal : Signal)
receive
Constructor Detail
Instance Method Detail
Joins all accepted resolution sets of this response into one large resolution set, and returns it. Does not distinguish between queried-for and wished resolution sets.
See AcceptionRoute
to learn about the difference between
queried-for and wished routes of set acception.
Yields wishes from this response's wishlist, then clears the wishlist (so that this response can perhaps be reused).
Joins all queried-for accepted resolution sets of this response into one large resolution set, and returns it.
See AcceptionRoute
to learn about the difference between
queried-for and wished routes of set acception.
Receives and reacts to a signal sent by RunnableRoot
.
Returns whether this response is successful, in that it has no rejected runnables.
Returns true
if this response does not "wish" to make any more
queries before its accepted sets can be inspected.