packages feed

netrium-0.6.0: examples/Test.timeseries.xml

<?xml version='1.0' ?>
<SimulationInputs>

  <!-- the starting time for the simulation -->
  <Time>2011-01-01 00:00:00 UTC</Time>

  <!-- optionally use the stop/continue mode -->
  <!--  <StopFirstWait/> -->
  <StopNextWait/>
  <!-- can either stop at the first wait, or when resuming
       stop at the next wait (since we resume at a wait point,
       so first wait would make no progress) -->

  <!-- The time series data for the contract, there can be many of these,
       one per primitive observable -->
  <ObservationSeries type="Bool" var="foo">
    <SeriesEntry><Time>2011-01-01 00:00:00 UTC</Time><True/></SeriesEntry>
    <SeriesUnbounded/>
    <!-- The last entry in a timeseries can be either unbounded or it can be
	 <SeriesEnds><Time>...</Time></SeriesEnds> 
	 That is, just the end time, no value. -->
  </ObservationSeries>

  <!-- Choices we can, or must make when running the contract -->
  <Choices>
    <!-- An 'anytime' contract choice, just a time when the option is taken
	 and the id of the choice -->
    <SeriesEntry>
      <Time>2011-01-01 00:00:01 UTC</Time>
      <Choice choiceid="%1"/>
    </SeriesEntry>
    <!-- An 'or' contract choice, also includes a True/False to indicate
	 which of the two sub-contracts was chosen -->
    <SeriesEntry>
      <Time>2011-01-01 00:00:01 UTC</Time>
      <Choice choiceid="or1"><False/></Choice>
    </SeriesEntry>
  </Choices>
  
  <!-- If we are resuming (ie <StopNextWait/>) then we should supply the
       interpreter state that was produced as part of the sim output when
       it previously stopped -->

  <ProcessState>
    <Time>2011-01-01 00:00:00 UTC</Time>
    <BlockedThreads>
      <BlockedOnAnytime>
        <False/><ChoiceId>%1</ChoiceId>
        <ObsCondition><NamedCond>foo</NamedCond></ObsCondition>
        <ThreadState>
          <One>
            <Financial><Currency>gbp</Currency><CashFlowType>cash</CashFlowType></Financial>
          </One>
          <UntilConditions/>
          <Double>1.0</Double>
          <Party/>
        </ThreadState>
      </BlockedOnAnytime>
    </BlockedThreads>
    <RunnableThreads/>
  </ProcessState>
</SimulationInputs>