networks: Add and use modality?
This commit is contained in:
parent
95d248c548
commit
5969595bed
1 changed files with 6 additions and 2 deletions
|
@ -43,6 +43,7 @@
|
|||
[state? (-> any/c boolean?)]
|
||||
[update-function-form? (-> any/c boolean?)]
|
||||
[network-form? (-> any/c boolean?)]
|
||||
[modality? (-> any/c boolean?)]
|
||||
[mode? (-> any/c boolean?)])
|
||||
;; Contracts
|
||||
(contract-out [state/c contract?]
|
||||
|
@ -256,8 +257,11 @@
|
|||
;;; 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 modality is a set of variable.
|
||||
(define modality? (set/c variable?))
|
||||
|
||||
;;; A mode is a set of modalities.
|
||||
(define mode? (set/c modality?))
|
||||
|
||||
;;; A network dynamics is a network plus a mode.
|
||||
(struct dynamics (network mode)
|
||||
|
|
Loading…
Reference in a new issue