Code Monkey home page Code Monkey logo

icuphp's People

Contributors

hanneskod avatar

Watchers

 avatar

icuphp's Issues

Feature::getPropertyDefinitions()

Could be a better way to encapsulate.

Features are then nothing more than collections of property definitions.

Should be possible to add (and remove?) features during execution. Think adding a new infusion. (But removing a drug from the rack does not necessarily remove its affect on the body..)

Patient is not neccesary, everything should be a property of Scenario.

Value renamed Property. Remove NullValue.

PropertyDefinitionInterface

Properties are processed in scenario and that makes it easy to log.

new PropertyDefinition(
    name: Constitution::LENGTH,
    desc: describe property for logging,
    value: new Property($length, "cm"),
);

// that something is an extension can be tracked with this.. 
// exception if extended property is not defined
new PropertyExtension(
    extends: Constitution::HEIGHT,
    desc: describe extension for logging,
    update: fn($time, $property, [$scenario]) => ...,
);

// virtuals can not be extended..
// uses can be used to ensure that properties exist...
new VirtualProperty(
    name: Constitution::BMI,
    desc: ...,
    uses: [Constitution::LENGTH, ...],
    value: fn($scenario) => calc_bmi(),
);

Desc could be renamed log and could be processed throw sprintf to add calculated values...

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.