Basic Language and Notation of Geometry
Lines, line segments, rays and points. A little bit about dimensions
<?xml version="1.0" encoding="UTF-8"?>
<!--Sat Jan 21 2012 16:35:16 GMT-0500 (EST)-->
<XholonWorkbook>
<Notes>
Khan Academy
------------
Title: Basic Language and Notation of Geometry
Description: Lines, line segments, rays and points. A little bit about dimensions
Url: http://www.khanacademy.org/video/basic-language-and-notation-of-geometry?playlist=Geometry
InternalName: basic-language-and-notation-of-geometry
YoutubeId: OtnQ9YEQ_tU
Keywords: geometry, ray, midpoint
My Notes
--------
</Notes>
<script implName="lang:python:inline:"><![CDATA[
print "height = 12.34 m"
]]></script>
<script implName="lang:javascript:inline:"><![CDATA[
print("height = 56.78 meters\n");
]]></script>
<_-.XholonClass>
<!-- domain objects -->
<GeometrySystem/>
<Block/>
<!-- quantities -->
<Height superClass="Length"/>
</_-.XholonClass>
<xholonClassDetails>
<Block>
<port name="height" connector="#xpointer(Height)"/>
</Block>
</xholonClassDetails>
<GeometrySystem>
<Block>
<Height>0.1 m</Height>
</Block>
</GeometrySystem>
<Blockbehavior implName="lang:python:inline:"><![CDATA[
# This works if pasted in as a last child of Block.
height.incVal(0.02)
print("Python wants something to do. Height:" + str(height))
]]></Blockbehavior>
<Blockbehavior implName="lang:javascript:inline:"><![CDATA[
// This works if pasted in as a last child of Block.
height.incVal(0.02);
print("JavaScript wants something to do. Height:" + height + "\n");
]]></Blockbehavior>
<Blockbehavior implName="lang:bsh:inline:"><![CDATA[
// This works if pasted in as a last child of Block.
height.incVal(0.02);
System.out.print("Java/Beanshell wants something to do. Height:" + height + "\n");
]]></Blockbehavior>
<Blockbehavior implName="lang:jruby:inline:"><![CDATA[
require 'java'
# This works if pasted in as a last child of Block.
$height.incVal(0.02)
puts "Ruby wants something to do. Height: #{$height}"
]]></Blockbehavior>
<Blockbehavior implName="lang:groovy:inline:"><![CDATA[
// This works if pasted in as a last child of Block.
height.incVal(0.02);
System.out.print("Groovy wants something to do. Height:" + height + "\n");
]]></Blockbehavior>
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml,
<svg width="350" height="100" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Block</title>
<rect id="GeometrySystem/Block" fill="#98FB98" height="50" width="50" x="25" y="25"/>
<g>
<rect id="GeometrySystem/Block/Height" fill="#6AB06A" height="50" width="10" x="80" y="25"/>
</g>
</g>
</svg>
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient>
</XholonWorkbook>