Location: Rogers & McCulloch (1994) @ 1a5fb711bfae / periodic-IStim.xml

Author:
David Nickerson <nickerso@users.sourceforge.net>
Date:
2016-09-01 09:07:53+12:00
Desc:
correcting invalid interface declartion on time variable
Permanent Source URI:
https://models.physiomeproject.org/workspace/242/rawfile/1a5fb711bfae01cd8a1793ae74ca10be3f05c2cb/periodic-IStim.xml

<?xml version="1.0" encoding="iso-8859-1"?>

<model
    name="periodic_IStim"
    cmeta:id="periodic_IStim"
    xmlns="http://www.cellml.org/cellml/1.1#"
    xmlns:cellml="http://www.cellml.org/cellml/1.1#"
    xmlns:cmeta="http://www.cellml.org/metadata/1.0#"
    xmlns:xlink="http://www.w3.org/1999/xlink">
  <rdf:RDF
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns:cmeta="http://www.cellml.org/metadata/1.0#"
      xmlns:bqs="http://www.cellml.org/bqs/1.0#"
      xmlns:dc="http://purl.org/dc/elements/1.1/"
      xmlns:dcterms="http://purl.org/dc/terms/"
      xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#">
    <rdf:Description rdf:about="">
      <dc:creator rdf:parseType="Resource">
        <vCard:N rdf:parseType="Resource">
          <vCard:Family>Nickerson</vCard:Family>
          <vCard:Given>David</vCard:Given>
        </vCard:N>
        <vCard:EMAIL rdf:parseType="Resource">
          <rdf:value>david.nickerson@nus.edu.sg</rdf:value>
          <rdf:type rdf:resource="http://imc.org/vCard/3.0#internet" />
        </vCard:EMAIL>
        <vCard:ORG rdf:parseType="Resource">
          <vCard:Orgname>National University of Singapore</vCard:Orgname>
          <vCard:Orgunit>Division of Bioengineering</vCard:Orgunit>
        </vCard:ORG>
      </dc:creator>
      <dcterms:created rdf:parseType="Resource">
        <dcterms:W3CDTF>2006-07-31</dcterms:W3CDTF>
      </dcterms:created>
    </rdf:Description>
    <rdf:Description rdf:about="#periodic_IStim">
      <dc:title>
        Protocol defining a periodic stimulus current.
      </dc:title>
      <cmeta:comment rdf:parseType="Resource">
        <rdf:value>
          This CellML file describes the protocol for the application of
          a periodic stimulus current.
        </rdf:value>
        <dc:creator rdf:parseType="Resource">
          <vCard:FN>David Nickerson</vCard:FN>
        </dc:creator>
      </cmeta:comment>
    </rdf:Description>
  </rdf:RDF>

  <import xlink:href="units.xml">
    <units name="ms" units_ref="ms"/>
    <units name="uA_per_mmsq" units_ref="uA_per_mmsq"/>
    <units name="uA_per_mmcu" units_ref="uA_per_mmcu"/>
    <units name="mV" units_ref="mV"/>
    <units name="mS_per_mmsq" units_ref="mS_per_mmsq"/>
    <units name="per_mm" units_ref="per_mm"/>
  </import>

  <component name="stimulus_protocol" cmeta:id="stimulus_protocol">
    <rdf:RDF
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns:cmeta="http://www.cellml.org/metadata/1.0#">
      <rdf:Description rdf:about="#stimulus_protocol">
        <cmeta:comment rdf:parseType="Resource">
          <rdf:value>
            Here we define the periodic stimulus protocol.
          </rdf:value>
        </cmeta:comment>
      </rdf:Description>
    </rdf:RDF>
    <variable cmeta:id="IStim" name="IStim" public_interface="out" units="uA_per_mmsq"/>
    <variable name="time" public_interface="in" units="ms"/>
    <variable name="stimPeriod" public_interface="in" units="ms"/>
    <variable name="stimDuration" public_interface="in" units="ms"/>
    <variable name="stimCurrent" public_interface="in" units="uA_per_mmcu"/>
    <variable name="Am" public_interface="in" units="per_mm"/>
    <math xmlns="http://www.w3.org/1998/Math/MathML">
      <apply id="stimulus_calculation"><eq />
        <ci>IStim</ci>
        <piecewise>
          <piece>
            <apply><divide/>
              <ci>stimCurrent</ci>
              <ci>Am</ci>
            </apply>
            <apply><lt/>
              <apply><rem/>
                <ci>time</ci>
                <ci>stimPeriod</ci>
              </apply>
              <ci>stimDuration</ci>
            </apply>
          </piece>
          <otherwise>
            <cn cellml:units="uA_per_mmsq">0.0</cn>
          </otherwise>
        </piecewise>
      </apply>
    </math>
  </component>
</model>