Click here to Skip to main content
15,891,745 members
Articles / Programming Languages / C#

Universal Framework for Science and Engineering - Part 4: Space elevator

Rate me:
Please Sign up or sign in to vote.
4.56/5 (6 votes)
14 Aug 20066 min read 36.6K   2.2K   37  
An article on framework applications to the space elevator.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>The "Astronomy" framework. Work with databse</title>
</head>
<body>
    <table summary="layout" width="550">
        <tr>
            <td align="left" valign="center">
                <a href="database.html" target="_top">
                    <img align="middle" alt="Previous Page" border="0" height="26" src="images/back.jpg"
                        width="26" /></a> <a href="index.html" target="_top">
                            <img align="middle" alt="Trail Contents" border="0" height="26" src="images/toc.jpg"
                                width="26" /></a> <a href="pointsindicators.html" target="_top">
                                    <img align="middle" alt="Next Page" border="0" height="26" src="images/forw.jpg"
                                        width="26" /></td>
            <td align="middle" valign="center">
                <font size="-1"></font></td>
            <td align="right" valign="center">
                <font size="-1"><a href="../search.html" target="_top"></a><br />
                    
                </font>
            </td>
        </tr>
    </table>
    <img align="bottom" alt="" height="8" src="images/blueline.gif" width="550" />
    <br />
    <h2>
        6. Iterators and filters</h2>
    <blockquote>
        <p>
           <b> <a href="iterators.html#Introduction">6.1 Introduction</a> </b> 
        </p>
         <p>
                <b><a href="iterators.html#Component">6.2 Data table iterator</a></b> 
        </p>
         <p>
                <b><a href="iterators.html#Series">6.3 Data table series</a></b>
        </p>
         <p>
                <b><a href="iterators.html#Filtration">6.4 Filtration</a></b>
        </p>
    </blockquote>
        <h2>
            <a name="Introduction">6.1 Introduction </a></h2>
    <blockquote>
        <p>
            Some operations are required to be iterated. Typical example of iteration is reading
            of
            rows from data table. Iterators
            are used for creation of selections for research.
            Another example is creation of star's models array from database. Typically
            an iterator requres a filtration that omit some steps of iteration process. In
            priciple filtration may be performed with use of SQL. However SQL is a very poor language and
            does not enable performing all kinds of filtration. The formula editor is used
            for filtration in this software.</p>
        <p>
        </p>
    </blockquote>
    <h2>
        <a name="Component">6.2 Data table iterator</a></h2>
    <p>
        Database iterator is a client of <a href="database.html#Component">query component</a> component corresponds to the
        <img alt="Database comoponent" src="images/datasetiteratorbutton.jpg" />
        button. It performs iterative reading of rows of SQL query. As a client of query component
        it shold be connected to <a href="database.html#Component">query component</a> .
        It is shown on the following picture:</p>
    <p>
        <img  alt="Iterator + query" src="images/queryplusiterator.jpg" />&nbsp;</p>
    <p>
        It is possible to process result of iteration. For example a user can link an 
          <a href="infoproccessing.html#Functionaltransformer"> functional transformer </a> to an iterator like it is exhibited on the following picture:</p>
    <p>
        <img alt="Combination" src="images/queryplusiteratorplusformula.jpg" />&nbsp;</p>
    <p>
        &nbsp;</p>
    <h2>
        <a name="Series">6.3 Data table series</a></h2>
    <p>
        Let us consider an example of application of this iterator.
        User should install <a href="hipandtycho.html">
            TYCHO and HIPPARCOS DATABASE</a> to reproduce this example. Configuration of
        this example is exhibited on the following picture:</p>
    <p>
        <img alt="Data series scenario" src="images/iteratorseriesscn.jpg" />&nbsp;</p>
    <p>
        We have a catalogue of stars and wish to construct Herzsprung-Rassel diagram. The
        catalogue contains parallaxes and magnitudes of stars. Herzsprung-Rassel diagram
        requires absolute magnitudes of stars. Formula editor provides the calculation of
        absolute star magnitude. The component <strong>Graph</strong> shows the following
        diagram</p>
    <p>
        <img alt="Diagram" src="images/iteratorseries.jpg" />&nbsp;</p>
    <p>
        <a href="cfa/dataseries.cfa">Click here to download this situation</a>.</p>
    <h2>
      <a name="Filtration">  6.4 Filtration</a></h2>
    Filtration of iterator output may be performed by the filter <img alt="Filter" src="images/filterbtn.JPG" />
    . Let us consider an example of a filter application. The problem depends on construction
    of&nbsp; Herzsprung-Rassel diagram with filtration of bad data. Data is bad if three
    times of root-mean-square error of a parallax exceeds a parallax. The situation with filter is exhibited on the following picture:<br />
    <br />
    <br />
    <p>
 <img alt="Filtration" src="images/filteredseriesscn.jpg" />   
    </p>
    <p>
        A filter contains a formula that returns a Boolean output. Its editor of properties
        looks like:</p>
    <p>
       <img alt="Filter properties" src="images/filterprop.jpg"/>&nbsp;</p>
    <p>
        The result diagram looks like:</p>
    <p>
        <img alt="Filtered diagram" src="images/filteredseries.jpg" />&nbsp;</p>
    <p>
        User should install <a href="hipandtycho.html">
            TYCHO and HIPPARCOS DATABASE</a> to reproduce this example. <a href="cfa/filterscn.cfa">
                Click here to download this situation</a> .</p>
            
    <p>
        
    <img align="bottom" alt="" height="8" src="images/blueline.gif" width="550" />
    <br />
    <table summary="layout" width="550">
        <tr>
            <td align="left" valign="center">
                <a href="database.html" target="_top">
                    <img align="middle" alt="Previous Page" border="0" height="26" src="images/back.jpg"
                        width="26" /></a> <a href="index.html" target="_top">
                            <img align="middle" alt="Trail Contents" border="0" height="26" src="images/toc.jpg"
                                width="26" /></a> <a href="pointsindicators.html" target="_top">
                                    <img align="middle" alt="Next Page" border="0" height="26" src="images/forw.jpg"
                                        width="26" /></a></td>
            <td align="middle" valign="center">
                <font size="-1"> </font>
            </td>
            <td align="right" valign="center">
                <font size="-1"><a href="../search.html" target="_top"></a>
                </font>
            </td>
        </tr>
    </table>
    <br />
    </p>

</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Architect
Russian Federation Russian Federation
Ph. D. Petr Ivankov worked as scientific researcher at Russian Mission Control Centre since 1978 up to 2000. Now he is engaged by Aviation training simulators http://dinamika-avia.com/ . His additional interests are:

1) Noncommutative geometry

http://front.math.ucdavis.edu/author/P.Ivankov

2) Literary work (Russian only)

http://zhurnal.lib.ru/editors/3/3d_m/

3) Scientific articles
http://arxiv.org/find/all/1/au:+Ivankov_Petr/0/1/0/all/0/1

Comments and Discussions