networks: Start section Dynamics of networks.
This commit is contained in:
parent
9f4fae1437
commit
2fa89f05b9
1 changed files with 18 additions and 1 deletions
19
networks.rkt
19
networks.rkt
|
@ -13,6 +13,8 @@
|
|||
(require "utils.rkt" graph)
|
||||
|
||||
(provide
|
||||
;; Structures
|
||||
(struct-out dynamics)
|
||||
;; Functions
|
||||
(contract-out [update (-> network? state? (listof variable?) state?)]
|
||||
[make-state (-> (listof (cons/c symbol? any/c)) state?)]
|
||||
|
@ -33,7 +35,8 @@
|
|||
(contract-out [variable? (-> any/c boolean?)]
|
||||
[state? (-> any/c boolean?)]
|
||||
[update-function-form? (-> any/c boolean?)]
|
||||
[network-form? (-> any/c boolean?)])
|
||||
[network-form? (-> any/c boolean?)]
|
||||
[mode? (-> any/c boolean?)])
|
||||
;; Contracts
|
||||
(contract-out [state/c contract?]
|
||||
[network/c contract?]
|
||||
|
@ -237,3 +240,17 @@
|
|||
(define (build-boolean-signed-interaction-graph network-form)
|
||||
(build-signed-interaction-graph network-form
|
||||
(make-boolean-domains (hash-keys network-form))))
|
||||
|
||||
|
||||
;;; ====================
|
||||
;;; Dynamics of networks
|
||||
;;; ====================
|
||||
|
||||
;;; This section contains definitions for building and analysing the
|
||||
;;; dynamics of networks.
|
||||
|
||||
;;; A mode is a set of sets of variables.
|
||||
(define mode? (set/c (set/c variable?)))
|
||||
|
||||
;;; A network dynamics is a network plus a mode.
|
||||
(struct dynamics (network mode))
|
||||
|
|
Loading…
Reference in a new issue