Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mef : can't read event tree examples from open PSA #286

Open
FenryrMKIII opened this issue Sep 15, 2020 · 1 comment
Open

mef : can't read event tree examples from open PSA #286

FenryrMKIII opened this issue Sep 15, 2020 · 1 comment

Comments

@FenryrMKIII
Copy link

I am using the following example from the open psa project :

<?xml version="1.0"?>

<!-- Simple event tree with collect-expressions instructions only -->
<opsa-mef>
  <define-initiating-event name="I" event-tree="EventTree"/>
  <define-event-tree name="EventTree">
    <define-functional-event name="B"/>
    <define-functional-event name="C"/>
    <define-functional-event name="D"/>
    <define-sequence name="Success"/>
    <define-sequence name="Failure"/>
    <define-branch name="D-if-B">
      <fork functional-event="D">
        <path state="success">
          <collect-expression>
            <float value="0.9"/>
          </collect-expression>
          <sequence name="Success"/>
        </path>
        <path state="failure">
          <collect-expression>
            <float value="0.1"/>
          </collect-expression>
          <sequence name="Failure"/>
        </path>
      </fork>
    </define-branch>
    <initial-state>
      <fork functional-event="B">
        <path state="success">
          <collect-expression>
            <float value="0.1"/>
          </collect-expression>
          <fork functional-event="C">  <!-- Irrelevant event on the path -->
            <path state="success">
              <collect-expression>
                <float value="0.8"/>
              </collect-expression>
              <branch name="D-if-B"/>
            </path>
            <path state="failure">
              <collect-expression>
                <float value="0.2"/>
              </collect-expression>
              <branch name="D-if-B"/>
            </path>
          </fork>
        </path>
        <path state="failure">
          <collect-expression>
            <float value="0.9"/>
          </collect-expression>
          <fork functional-event="C">
            <path state="success">
              <collect-expression>
                <float value="0.6"/>
              </collect-expression>
              <fork functional-event="D">
                <path state="success">
                  <collect-expression>
                    <float value="0.6"/>
                  </collect-expression>
                  <sequence name="Success"/>
                </path>
                <path state="failure">
                  <collect-expression>
                    <float value="0.4"/>
                  </collect-expression>
                  <sequence name="Failure"/>
                </path>
              </fork>
            </path>
            <path state="failure">
              <collect-expression>
                <float value="0.4"/>
              </collect-expression>
              <fork functional-event="D">
                <path state="success">
                  <collect-expression>
                    <float value="0.5"/>
                  </collect-expression>
                  <sequence name="Success"/>
                </path>
                <path state="failure">
                  <collect-expression>
                    <float value="0.5"/>
                  </collect-expression>
                  <sequence name="Failure"/>
                </path>
              </fork>
            </path>
          </fork>
        </path>
      </fork>
    </initial-state>
  </define-event-tree>
</opsa-mef>

and SCRAM returns the followin error for Line 5 :

scram::xml::ValidityError

Did not expect element define-initiating-event there

I am getting the same kind of error when using the provided examples with SCRAM. Any idea ?

@aggelikigr96
Copy link

It seems I have the same problem with you. Did you find out what is the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants