<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/wb/ (C) Ken Webb Mon Apr 02 2012 06:56:02 GMT-0400 (EDT)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: Tanta luz apaga el cielo de Madrid
Description:
Url: http://ccaa.elpais.com/ccaa/2012/03/31/madrid/1333227461_880824.html
InternalName:
YoutubeId:
Keywords:
My Notes
--------
Last year my Spanish teacher suggested reading El País, a daily newspaper in Madrid, with the highest circulation in Spain. Although I find the vocabulary in El País quite difficult, today I will try reading part of an article in the Science (Ciencia) section. The first paragraph mentions that the coat of arms of Madrid has the "los siete luceros de la constelación de la Osa Mayor", the seven stars of the big dipper (Ursa Major), but that residents of Madrid are lucky to be able to see any stars at all because there is so much light. Correspondents Elena G. Sevillano and Marta Fernández interview "el presidente de la Agrupación Astronómica de Madrid", the president of the local astronomical association.
The headline translates: So much light extinguishes the Madrid sky
To watch the city lights extinguish the stars in the sky::
Press the Run button above.
Press the Pause button in the overlay, to start (unpause) the simulation.
]]></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>
<!-- types of domain objects -->
<PhysicalSystem/>
<Constelación>
<OsaMayor/> <!-- the big dipper -->
</Constelación>
<Estrella> <!-- a star -->
<Lucero/> <!-- a bright star -->
</Estrella>
<Ciudad/>
<Luz/>
</_-.XholonClass>
<xholonClassDetails>
</xholonClassDetails>
<PhysicalSystem>
<OsaMayor>
<Lucero multiplicity="7"/>
</OsaMayor>
<Ciudad roleName="Madrid">
<Luz/>
</Ciudad>
</PhysicalSystem>
<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>
<Luzbehavior implName="lang:webEditionjs:inline:"><![CDATA[
print("So much light extinguishes the Madrid sky\n");
var svg = $($('div#mySVGDiv > object')[0].contentDocument.getElementsByTagNameNS(svgns, 'svg')[0]);
var sky = svg.children('g').children('g').children('rect');
var skyFill = sky.attr('fill');
if (skyFill.indexOf("#ffffff") == -1) {
skyFill = (parseInt(skyFill.substring(1,3), 16) - 0 + 1).toString(16);
sky.attr('fill', '#' + skyFill + skyFill + skyFill);
}
]]></Luzbehavior>
<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="416" height="323" xmlns="http://www.w3.org/2000/svg">
<g>
<title>los siete luceros de la constelación de la Osa Mayor</title>
<g id="svg_2">
<rect width="415.99997" height="323" fill="#000000" id="svg_1" y="0.00002" x="0.00001"/>
<circle fill="#ffffff" cx="65.97579" cy="48.65062" r="3.53585" id="svg_8"/>
<circle fill="#ffffff" cx="150.08232" cy="79.7469" r="3.53585" id="svg_10"/>
<circle fill="#ffffff" cx="190.87651" cy="124.3851" r="3.53585" id="svg_11"/>
<circle fill="#ffffff" cx="233.68522" cy="170.52795" r="3.53585" id="svg_12"/>
<circle fill="#ffffff" cx="360.60048" cy="215.16615" r="3.53585" id="svg_13"/>
<circle fill="#ffffff" cx="228.14527" cy="237.23448" r="3.53585" id="svg_14"/>
<circle fill="#ffffff" cx="323.33171" cy="268.33075" r="3.53433" id="svg_15"/>
</g>
</g>
</svg>
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient>
</XholonWorkbook>