Generalize the type of build-state-graph* and build-state-graph*/annotated.
This commit is contained in:
parent
45410176b7
commit
ecc57a34fc
2 changed files with 8 additions and 5 deletions
|
@ -29,9 +29,9 @@
|
||||||
(: build-state-graph/annotated (-> (Listof State) Graph))
|
(: build-state-graph/annotated (-> (Listof State) Graph))
|
||||||
(define/abstract/error (build-state-graph/annotated sts))
|
(define/abstract/error (build-state-graph/annotated sts))
|
||||||
|
|
||||||
(: build-state-graph* (-> (Listof State) Integer Graph))
|
(: build-state-graph* (-> (Listof State) (U Integer 'full) Graph))
|
||||||
(define/abstract/error (build-state-graph* sts nsteps))
|
(define/abstract/error (build-state-graph* sts nsteps))
|
||||||
|
|
||||||
(: build-state-graph*/annotated (-> (Listof State) Integer Graph))
|
(: build-state-graph*/annotated (-> (Listof State) (U Integer 'full) Graph))
|
||||||
(define/abstract/error (build-state-graph*/annotated nsteps sts))
|
(define/abstract/error (build-state-graph*/annotated nsteps sts))
|
||||||
))
|
))
|
||||||
|
|
|
@ -87,10 +87,12 @@ step/annotated].
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@defmethod[(build-state-graph* [sts (Listof State)] [nsteps Integer]) Graph]{
|
@defmethod[(build-state-graph* [sts (Listof State)] [nsteps (U Integer 'full)]) Graph]{
|
||||||
|
|
||||||
Given a set of starting states and a number @racket[nsteps] of steps to run,
|
Given a set of starting states and a number @racket[nsteps] of steps to run,
|
||||||
produces the state graph reachable from the starting states @racket[nsteps] steps.
|
produces the state graph reachable from the starting states @racket[nsteps]
|
||||||
|
steps. If @racket[nsteps] is @racket['full], constructs the full state
|
||||||
|
graph instead.
|
||||||
|
|
||||||
This method falls back to exploring the state graph with @method[dds% step].
|
This method falls back to exploring the state graph with @method[dds% step].
|
||||||
|
|
||||||
|
@ -101,7 +103,8 @@ This method falls back to exploring the state graph with @method[dds% step].
|
||||||
|
|
||||||
Given a set of starting states and a number @racket[nsteps] of steps to run,
|
Given a set of starting states and a number @racket[nsteps] of steps to run,
|
||||||
produces the labelled state graph reachable from the starting states
|
produces the labelled state graph reachable from the starting states
|
||||||
@racket[nsteps] steps.
|
@racket[nsteps] steps. If @racket[nsteps] is @racket['full], constructs the
|
||||||
|
full state graph instead.
|
||||||
|
|
||||||
This method falls back to exploring the state graph with @method[dds%
|
This method falls back to exploring the state graph with @method[dds%
|
||||||
step/annotated].
|
step/annotated].
|
||||||
|
|
Loading…
Reference in a new issue