<?xml version="1.0"?>
<!DOCTYPE activity SYSTEM "escot.dtd" >
<activity name="Earthquake" size="620,400" escotVersion="1.2.7" puzzle_id="19">
  <page name="Week 4">
    <component class="org.escot.demo.SimpleGraph" position="2,2" size="200,120" portid="SimpleGraph-1">
      <property name="labelInterval" value="2,1"/>
      <property name="derivative" value="0"/>
      <property name="xAxisName" value="time difference "/>
      <property name="scrollable" value="false"/>
      <property name="extent" value="-5.0,-7.0,40,30"/>
      <property name="tickInterval" value="5,5"/>
      <property name="yAxisName" value="miles"/>
    </component>
    <component class="org.escot.demo.SimpleFunction" position="1000,614" size="181,35" portid="SimpleFunction-1">
      <property name="color" value="0,153,51"/>
      <property name="name" value="Parabola"/>
      <property name="a2" value="0.0"/>
      <property name="a1" value="0.5"/>
      <property name="a0" value="0.0"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
    </component>
    <component class="SketchpadBean2" position="2,124" size="335,283" portid="SketchpadBean2-1">
 {1} FixedPoint(59,50)[label('S1'),cyan];
 {2} FixedPoint(246,194)[label('S2'),red];
 {3} FixedPoint(19,250)[label('S3'),green];
 {4} Parameter(4,1,172,'Distance1')[hidden];
 {5} Parameter(5,3,172,'Distance2')[hidden];
 {6} Parameter(6,5,172,'Distance3')[hidden];
 {7} Calculate(0,0,'a','A10.0 *')(4)[hidden];
 {8} Calculate(0,0,'a','A10.0 *')(5)[hidden];
 {9} Calculate(0,0,'a','A10.0 *')(6)[hidden];
 {10} Translation/FixedAngle/MarkedDistance(1,7,0.00000000)[hidden];
 {11} Translation/FixedAngle/MarkedDistance(2,8,0.00000000)[hidden];
 {12} Translation/FixedAngle/MarkedDistance(3,9,0.00000000)[hidden];
 {13} Circle(1,10)[cyan];
 {14} Circle(2,11)[red];
 {15} Circle(3,12)[green];
 {16} Image(0,0,'earthquake3mod.gif');
 <property name="SketchBackColor" value="200,200,200"/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="227,22" size="115,17" portid="NumberEntry-1">
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="S2 distance: "/>
      <property name="value" value="5.0"/>
      <property name="allowNegative" value="true"/>
      <property name="minimumDecimalPlaces" value="0"/>
      <property name="suffix" value=""/>
      <property name="editable" value="true"/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="227,2" size="115,17" portid="NumberEntry-2">
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="S1 distance: "/>
      <property name="value" value="5.0"/>
      <property name="allowNegative" value="true"/>
      <property name="minimumDecimalPlaces" value="0"/>
      <property name="suffix" value=""/>
      <property name="editable" value="true"/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="227,44" size="115,17" portid="NumberEntry-3">
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="S3 distance: "/>
      <property name="value" value="5.5"/>
      <property name="allowNegative" value="true"/>
      <property name="minimumDecimalPlaces" value="0"/>
      <property name="suffix" value=""/>
      <property name="editable" value="true"/>
    </component>
    <component class="org.escot.demo.HTMLViewer" position="340,2" size="288,140" portid="HTMLViewer-1">
      <![CDATA[<html>
  <body>
 <small>
On January 12, 2000, an earthquake occurred somewhere on this map. 
Three seismograph stations measured time differences between P and S waves: <BR><BR>
Station 1: 26 seconds<BR>
Station 2: 24 seconds<BR>
Station 3: 28 seconds</body>
</html>
]]>
    </component>
     <component class="org.escot.demo.TextEditor" answerText="true" position="340,144" size="288,250" portid="TextEditor-1">
      <![CDATA[Answer these questions:

1. What is the distance from each seismograph (S1, S2, S3) to the epicenter? (Hint: Use the graph.)

2. Enter these distances in the boxes labeled S1 Distance, S2 Distance, & S3 Distance. Notice that the radius of each circle adjusts. Where is the epicenter?  How can you tell?

3. (BONUS) Last week, we determined that data from one seismograph can only determine the circle along which the epicenter must lie. This week, we found that data from three seismographs gives an exact location. What could you learn from only 2 seismographs? How about 4 or more?
]]>
      <property name="background" value="255,255,185"/>
      <property name="font" value="Times New Roman,Times New Roman,0,12"/>
    </component>

    <wire type="org.escot.Broker">
      <from portid="NumberEntry-2" name="number"/>
      <to portid="SketchpadBean2-1" name="Distance1"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="NumberEntry-1" name="number"/>
      <to portid="SketchpadBean2-1" name="Distance2"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="NumberEntry-3" name="number"/>
      <to portid="SketchpadBean2-1" name="Distance3"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="SimpleFunction-1" name="Parabola"/>
      <to portid="SimpleGraph-1" name=""/>
    </wire>
  </page>
</activity>

