networks: Remove read-org-network-make-asyn and read-org-network-make-syn.
I think I initially intended these functions for Boolean networks. I'll see if I add back something similar to these when I will be fixing example.org.
This commit is contained in:
parent
97026a2a42
commit
6cfa66694d
1 changed files with 0 additions and 10 deletions
10
networks.rkt
10
networks.rkt
|
@ -52,8 +52,6 @@
|
||||||
[make-dynamics-from-func (-> network? (-> (listof variable?) mode?) dynamics?)]
|
[make-dynamics-from-func (-> network? (-> (listof variable?) mode?) dynamics?)]
|
||||||
[make-asyn-dynamics (-> network? dynamics?)]
|
[make-asyn-dynamics (-> network? dynamics?)]
|
||||||
[make-syn-dynamics (-> network? dynamics?)]
|
[make-syn-dynamics (-> network? dynamics?)]
|
||||||
[read-org-network-make-asyn (-> string? dynamics?)]
|
|
||||||
[read-org-network-make-syn (-> string? dynamics?)]
|
|
||||||
[dds-step-one (-> dynamics? state? (set/c state?))]
|
[dds-step-one (-> dynamics? state? (set/c state?))]
|
||||||
[dds-step-one-annotated (-> dynamics? state? (set/c (cons/c modality? state?)))]
|
[dds-step-one-annotated (-> dynamics? state? (set/c (cons/c modality? state?)))]
|
||||||
[dds-step (-> dynamics? (set/c state? #:kind 'dont-care) (set/c state?))]
|
[dds-step (-> dynamics? (set/c state? #:kind 'dont-care) (set/c state?))]
|
||||||
|
@ -698,14 +696,6 @@
|
||||||
(check-equal? (dynamics-network syn) n)
|
(check-equal? (dynamics-network syn) n)
|
||||||
(check-equal? (dynamics-mode syn) (set (set 'a 'b)))))
|
(check-equal? (dynamics-mode syn) (set (set 'a 'b)))))
|
||||||
|
|
||||||
;;; Reads an Org-mode-produced sexp, converts it into a network, and
|
|
||||||
;;; builds the asyncronous dynamics out of it.
|
|
||||||
(define read-org-network-make-asyn (compose make-asyn-dynamics network-form->network read-org-variable-mapping))
|
|
||||||
|
|
||||||
;;; Reads an Org-mode-produced sexp, converts it into a network, and
|
|
||||||
;;; builds the synchronous dynamics out of it.
|
|
||||||
(define read-org-network-make-syn (compose make-syn-dynamics network-form->network read-org-variable-mapping))
|
|
||||||
|
|
||||||
;;; Pretty-prints a state of the network.
|
;;; Pretty-prints a state of the network.
|
||||||
(define (pretty-print-state s)
|
(define (pretty-print-state s)
|
||||||
(string-join (hash-map s (λ (key val) (format "~a:~a" key val)) #t)))
|
(string-join (hash-map s (λ (key val) (format "~a:~a" key val)) #t)))
|
||||||
|
|
Loading…
Reference in a new issue