<?xml version="1.0" encoding="UTF-8"?>
<otrunk id="7dca7f8e-7296-4a85-a1bd-37997f03ab71">
  <imports>
    <import class="org.concord.framework.otrunk.view.OTFrame" />
    <import class="org.concord.otrunk.OTSystem" />
    <import class="org.concord.otrunk.OTInclude" />
    <import class="org.concord.otrunk.view.OTViewBundle" />
    <import class="org.concord.otrunk.view.OTViewEntry" />
    <import class="org.concord.otrunk.view.OTViewChild" />
    <import class="org.concord.otrunk.view.document.OTCompoundDoc" />
    <import class="org.concord.otrunk.view.OTFrameDisplayAction" />
    <import class="org.concord.otrunk.view.OTViewMode" />
    <import class="org.concord.otrunk.ui.OTButton" />
    <import class="org.concord.otrunk.ui.OTText" />
    <import class="org.concord.otrunk.ui.OTChoice" />
    <import class="org.concord.otrunk.ui.OTPlacement" />
    <import class="org.concord.otrunk.ui.OTPlacementContainer" />
    <import class="org.concord.otrunk.ui.OTCardContainer" />
    <import class="org.concord.otrunk.ui.OTTextPane" />
    <import class="org.concord.otrunk.script.OTScriptEngineBundle" />
    <import class="org.concord.otrunk.script.OTScriptEngineEntry" />
    <import class="org.concord.otrunk.script.ui.OTXHTMLScript"/>
    <import class="org.concord.otrunk.script.ui.OTScriptObject" />
    <import class="org.concord.otrunk.script.ui.OTScriptVariable" />
    <import  class="org.concord.otrunk.script.ui.OTScriptVariableComponent" />
    <import class="org.concord.otrunk.script.js.OTJavascript" />
    <import class="org.concord.otrunk.browser.mozswing.OTMozSwing" />
    <import class="org.concord.otrunk.labview.OTLabviewMonitor" />
    <import class="org.concord.otrunk.capa.util.OTCAPAChecker" />
    <import  class="org.concord.otrunkcapa.rubric.OTAssessmentViewConfig" />
    <import class="org.concord.otrunkcapa.rubric.OTAssessment" />
  </imports>
  <objects>
    <OTSystem local_id="system">
      <bundles>
        <OTViewBundle showLeftPanel="false"  id="446ec4aa-6048-496f-a888-b602b18ee1fa">
          <views>
            <OTViewEntry
              objectClass="org.concord.otrunk.view.document.OTDocument"
              viewClass="org.concord.otrunk.view.document.OTDocumentView" />
            <OTViewEntry
              objectClass="org.concord.otrunk.ui.OTButton"
              viewClass="org.concord.otrunk.ui.swing.OTButtonView" />
            <OTViewEntry local_id="ot_text_view_entry"
              objectClass="org.concord.otrunk.ui.OTText"
              viewClass="org.concord.otrunk.ui.swing.OTTextEditView" />
            <OTViewEntry
              objectClass="org.concord.otrunk.ui.OTTextPane"
              viewClass="org.concord.otrunk.ui.swing.OTTextPaneView" />
            <OTViewEntry
              objectClass="org.concord.otrunk.ui.OTChoice"
              viewClass="org.concord.otrunk.ui.swing.OTChoiceComboBoxView" />
            <OTViewEntry
              objectClass="org.concord.otrunk.ui.OTPlacementContainer"
              viewClass="org.concord.otrunk.ui.swing.OTPlacementContainerView" />
            <OTViewEntry
              objectClass="org.concord.otrunk.ui.OTCardContainer"
              viewClass="org.concord.otrunk.ui.swing.OTCardContainerView" />
            <OTViewEntry
              objectClass="org.concord.otrunk.script.ui.OTXHTMLScript"
              viewClass="org.concord.otrunk.script.ui.OTXHTMLScriptView"/>
            <OTViewEntry 
              objectClass="org.concord.otrunk.script.ui.OTScriptObject"
              viewClass="org.concord.otrunk.script.ui.OTScriptObjectView"/>
            <OTViewEntry 
              objectClass="org.concord.otrunk.capa.util.OTCAPAChecker" 
              viewClass="org.concord.otrunk.capa.util.OTCAPACheckerView" /> 
            <OTViewEntry
              objectClass="org.concord.otrunkcapa.rubric.OTRubric"
              viewClass="org.concord.otrunkcapa.rubric.view.OTRubricSplitPaneView" />
            <OTViewEntry
              objectClass="org.concord.otrunkcapa.rubric.OTRubricIndicator"
              viewClass="org.concord.otrunkcapa.rubric.view.OTRubricIndicatorView" />
            <OTViewEntry
              objectClass="org.concord.otrunkcapa.rubric.OTRubricIndicatorValue"
              viewClass="org.concord.otrunkcapa.rubric.view.OTRubricIndicatorValueView" />
            <OTViewEntry
              objectClass="org.concord.otrunkcapa.rubric.OTRubricIndicatorRange"
              viewClass="org.concord.otrunkcapa.rubric.view.OTRubricIndicatorRangeView" />
                        <OTViewEntry local_id="moz-swing-view" 
                          objectClass="org.concord.otrunk.browser.mozswing.OTMozSwing" 
                          viewClass="org.concord.otrunk.browser.mozswing.OTMozSwingView" />
            <OTAssessmentViewConfig id="f19b8540-5de8-11dd-ad8b-0800200c9a66" 
              objectClass="org.concord.otrunkcapa.rubric.OTAssessment"
              viewClass="org.concord.otrunkcapa.rubric.OTAssessmentView"
              showFromScript="true"
              showQualitative="false">
              <rubric>
                <object  refid="02d179b3-db94-4014-ad2c-f689512ea3c5" />
              </rubric>
              <script>
                <object refid="${report_script}"/>
              </script>
            </OTAssessmentViewConfig>
            <OTViewEntry
              objectClass="org.concord.otrunk.labview.OTLabviewMonitor"
              viewClass="org.concord.otrunk.labview.OTLabviewMonitorView" />
          </views>
          <modes>
            <OTViewMode name="report_mode">
              <map>
                <entry key="${ot_text_view_entry}">
                  <OTViewEntry
                    objectClass="org.concord.otrunk.ui.OTText"
                    viewClass="org.concord.otrunk.ui.xhtml.OTTextXHTMLView" />
                </entry>
              </map>
            </OTViewMode>
          </modes>
          <frame>
            <OTFrame width="800" height="600" />
          </frame>
        </OTViewBundle>
        <OTScriptEngineBundle id="7a8809b8-5f9a-403e-8d77-4265bd333dbe">
          <engines>
            <OTScriptEngineEntry
              objectClass="org.concord.otrunk.script.js.OTJavascript"
              engineClass="org.concord.otrunk.script.js.OTJavascriptEngine" />
          </engines>
        </OTScriptEngineBundle>
      </bundles>
      <includes>
        <OTInclude href="capa-digital-rubric.otml" />
      </includes>
      <root>
            <OTCAPAChecker local_id="checker" name="Checker" 
              nextToShow="f89a4b34-4ac5-4b73-ab37-6965e610da01" mozSwing="cdd3a04e-d9b6-4337-833b-8dabac526e6c"
              mozSwingForVideo = "${browser}"
              windowsOnly="true"
              checkFlashPlugin="true" flashPluginMinVersion="8"
              checkLabviewRuntime="true" labviewRuntimeMinVersion="8.5" labviewRuntimeMaxVersion="8.6"/>
      </root>
      <library>
         <OTCompoundDoc id="f89a4b34-4ac5-4b73-ab37-6965e610da01" local_id="title_page" name="Title Page">
           <bodyText>
             <object refid="${intro_holder}"/>
           </bodyText>  
         </OTCompoundDoc>
        <OTCardContainer local_id="intro_holder">
        <!--card container is used only to preserve the "show rubric" button in the next page in demo mode-->
          <cards>
            <OTCompoundDoc local_id="intro_page">
              <bodyText>
                <font size="4" face="Verdana">
                  <div style="padding-top: 5mm; padding-bottom: 0mm; padding-left: 30mm; padding-right: 30mm;">
                    <p align="center">
                      <img src="jres:///org/concord/otrunk/capa/images/capa.gif" />
                    </p>
                    <h3>Digital Troubleshooting</h3>
                    <p>
This assessment presents you with a digital circuit. You can view the circuit's schematic or a breadboard version. 
Both show three gate chips: U1, U2, and U3. The breadboard shows these three chips correctly wired. 
The schematic gives the pin numbers for each of the chips. 
At any point you can view the specifications for each of the three chips.
                    </p>
                    <p>
Your first task will be to create a truth table for the no-fault circuit. After you have done this you will be 
presented with a circuit that may or may not have a faulty gate. Your task will be to verify whether the circuit 
works properly, or if it doesn't, to identify the fault.  You will analyze this circuit three times, each time 
the circuit condition will be different. Remember: the breadboard is wired correctly.
                    </p>
                    <p>
Your score on this activity will be based on correctly diagnosing the circuit with credit for doing the job efficiently, 
so try to make as few measurements as possible, but be confident that you're right.
                    </p>              
                    <p />
                    <p align="center"><a href="${flash_page}">Continue</a></p>
                  </div>
                </font>
              </bodyText>
            </OTCompoundDoc>
          </cards>
        </OTCardContainer>
        <OTCompoundDoc local_id="flash_page" name="Flash Demo">
          <bodyText>
            <h2 align="center">Digital Troubleshooting</h2>
            <center>
            The movie below will help you complete this assessment. After it loads, click on the movie to <b>Play</b>. 
            When done, click the <b>"Continue"</b> link below.
            </center>
            <table width="100%"><tr><td><object refid="${browser}"/></td></tr></table>
            <p align="center">
              <a href="${main_activity}">Continue</a>
            </p>
          </bodyText>
        </OTCompoundDoc>
        <OTCompoundDoc name="Main Activity"  local_id="main_activity">
          <bodyText>
            <object refid="${main_cards}"/>
          </bodyText>
        </OTCompoundDoc>
        <OTMozSwing local_id="browser" name="Web browser" url="http://capa.concord.org/videos/digtrouble/digtrouble.swf" 
          showToolbar="false" showStatusBar="false" 
          preferredWidth="800" preferredHeight="420" />
        <OTViewEntry local_id="script_report_view"
          objectClass="org.concord.otrunk.script.ui.OTScriptObject"
          viewClass="org.concord.otrunk.script.ui.OTScriptObjectContentsReportView" />
        <OTLabviewMonitor local_id="launch_labview_button" label="Show Circuit">
          <viPath>wrap_digital_fault.vi</viPath>
        </OTLabviewMonitor>
        <OTCardContainer local_id="main_cards">
          <cards>
            <object refid="${main_card_1}" />
            <object refid="${main_card_2}" />
          </cards>
        </OTCardContainer>
        <OTCompoundDoc local_id="main_card_1">
          <bodyText>
            <table>
              <tr>
                            <!-- <td align="center" colspan="2"><table><tr><td><object refid="${browser}"/></td></tr></table></td>-->
              </tr>
              <tr>
                <td rowspan="2"><object refid="${inst_text}"/></td>
                <td><object refid="${launch_labview_button}"/></td>
              </tr>
            </table>
            <object refid="${activity_script}"/>
          </bodyText>
        </OTCompoundDoc>
        <OTCompoundDoc local_id="main_card_2">
          <bodyText>
            <table width="100%">
              <tr>
                <td><font size="4" face="Verdana">
                            This assessment is over.<br />
                            You can close the window now.</font>
                  </td>
                <td width="20%"><object refid="${report_button}"/></td>
              </tr>
            </table>
          </bodyText>
        </OTCompoundDoc>
        <OTTextPane local_id="inst_text" name="Instruction">
          <text>
            <html>
              <style type="text/css">li { margin-bottom: 4px }</style>
              <blockquote>
                <font size="4" face="Verdana">
                  <b>Instructions:</b>
                  <br />
                  <ol>
                    <li>
                      Click on <font color="#009000">Show Circuit</font> button to open the circuit window
                      and begin the assessment.
                    </li>
                  </ol>
                </font>
              </blockquote>
            </html>
          </text>
        </OTTextPane>
        <OTButton local_id="report_button" name="Report Button"  text="Show Report" id="396a2425-794d-48a9-8275-1516205ed32c">
          <action>
            <object refid="${show_report_action}" />
          </action>
        </OTButton>
        <OTFrameDisplayAction local_id="show_report_action" viewMode="report_mode">
          <frame>
            <OTFrame local_id="report_popup" width="900" height="600" title="Activity Report" />
          </frame>
          <objectToDisplay>
            <object refid="${script_report_object}" />
          </objectToDisplay>
        </OTFrameDisplayAction>
        <OTViewChild local_id="script_report_object" useScrollPane="true">
          <object>
            <object refid="${activity_script}" />
          </object>
          <viewid>
            <object refid="${script_report_view}" />
          </viewid>
        </OTViewChild>
        <OTAssessment local_id="assessment" title="Digital Troubleshooting"/>
        <OTScriptObject local_id="activity_script">
          <variables>
            <OTScriptVariable name="ot_assessment">
              <reference>
                <object refid="${assessment}"/>
              </reference>
            </OTScriptVariable>
            <OTScriptVariable name="ot_cards">
              <reference>
                <object refid="${main_cards}" />
              </reference>
            </OTScriptVariable>
            <OTScriptVariable name="ot_monitor">
              <reference>
                <object  refid="${launch_labview_button}" />
              </reference>
            </OTScriptVariable>
          </variables>
          <script>
            <OTJavascript>
              <scripts>
                <OTJavascript
                  src="jres:///org/concord/otrunk/capa/scripts/activity/capa-digital-activity.js" />
                <OTJavascript
                  src="jres:///org/concord/otrunk/capa/scripts/activity/capa-digital-assess.js" />
              </scripts>
            </OTJavascript>
          </script>
        </OTScriptObject>
        <OTXHTMLScript local_id="report_script">
          <variables>
            <OTScriptVariable name="ot_assessment">
              <reference>
                <object refid="${assessment}"/>
              </reference>
            </OTScriptVariable>
            <OTScriptVariable name="ot_rubric">
              <reference>
                <object refid="02d179b3-db94-4014-ad2c-f689512ea3c5"/>
              </reference>
            </OTScriptVariable>
          </variables>
          <script>
            <OTJavascript src="jres:///org/concord/otrunk/capa/scripts/reports/individual/capa-digital-report.js"/>
          </script>
        </OTXHTMLScript>
        <OTMozSwing id="cdd3a04e-d9b6-4337-833b-8dabac526e6c" name="Direct to flash install site" 
          url="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" 
          showToolbar="false" showStatusBar="false" 
          preferredWidth="800" preferredHeight="300" />
      </library>
    </OTSystem>
  </objects>
</otrunk>
