GithubHelp home page GithubHelp logo

dx's Introduction

         8I               
         8I               
         8I               
         8I               
   ,gggg,8I     ,gg,   ,gg
  dP"  "Y8I    d8""8b,dP" 
 i8'    ,8I   dP   ,88"   
,d8,   ,d8b,,dP  ,dP"Y8,  
P"Y8888P"`Y88"  dP"   "Y88

definition execution

Third iteration: state is stored in agents, minimal deps.

abbreviations

  • cont ... container
  • defis ... definitions
  • ndx ... container number
  • idx ... sequential step
  • jdx ... parallel step
  • exch ... exchange interface

mem

mpd

  ;; generate a fresh mpd
  (def m (-> {}
          mpd/standard->
          mpd/name->
          mpd/descr->
          mpd/exch->
          mpd/cont->
          mpd/defi->))

mlooks like this:

{:Mp
 {:Standard "NN",
  :Name "generic",
  :Description "Default description",
  :Exchange {:Default {:Bool true}},
  :Container
  [{:Title "Default title",
    :Description "Default container description",
    :Element [:Default],
    :Definition [[{:TaskName "Common-wait"}]]}],
  :Definitions
  [{:DefinitionClass "default",
    :ShortDescr "Default description",
    :Condition
    [{:ExchangePath "Default.Bool", :Methode "eq", :Value true}],
    :Definition [[{:TaskName "Common-wait"}]]}]},
 :_id "mpd-nn-generic"}
(def mem (atom {}))
(up m)
(deref mem)

mem looks loke this:

{:mpd-nn-generic
 {:Standard "NN",
  :Name "generic",
  :Description "Default description",
  :Exchange #<Agent@4c66db73: nil>,
  :Container
  [{:Title "Default title",
    :Description "Default container description",
    :Element [:Default],
    :Definition [[{:TaskName "Common-wait"}]],
    :State
    #<Agent@4937c4d3: 
      {:states
       [{:mp-id :mpd-nn-generic,
         :struct :Container,
         :ndx 0,
         :idx 0,
         :jdx 0,
         :state :ready}],
       :ctrl :ready}>,
    :Future #<Future@9669e3c: :pending>}],
  :Definitions
  [{:DefinitionClass "default",
    :ShortDescr "Default description",
    :Condition
    [{:ExchangePath "Default.Bool", :Methode "eq", :Value true}],
    :Definition [[{:TaskName "Common-wait"}]],
    :State
    #<Agent@91f1b42: 
      {:states
       [{:mp-id :mpd-nn-generic,
         :struct :Definitions,
         :ndx 0,
         :idx 0,
         :jdx 0,
         :state :ready}],
       :ctrl :ready}>,
    :Future #<Future@791e4d85: :pending>}]}}

testing

clj -M:dev:test

dx's People

Contributors

wactbprot avatar

Watchers

 avatar  avatar

dx's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.