[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Here's how to remove 'time' from a processing problem

  • From: Roger L Costello <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Wed, 21 Dec 2022 16:02:04 +0000

Re:  Here's how to remove 'time' from a processing problem
Hi Peter,

You don't like my fictitious Car.xml/PoliceReport.xml example? Bummer.

Okay, then here's an actual, real-world example. It is an exact analog of the Car.xml/Police.xml example, albeit a bit more complex.

A radar scans the sky and detects an object. The radar saves the information about the object to an XML file and stores the file in a folder (along with other files that it has stored for other objects):

<Object id="XYZ">
    <Location>
        <Latitude>10</Latitude>
        <Longitude>20</Longitude>
        <Elevation>100</Elevation>
    </Location>
    <DateTime>...</DateTime>
    -- other info --
</Object>

At some point a program reads in that XML document and begins processing it. The objective of processing is to output an alert if the object represents an enemy aircraft and "" (benign object) otherwise. However, the program determines that the document does not contain sufficient information to make a decision. The information to make the decision arrives some time later, in another document (the radar has subsequently collected additional information about the object): 

<UpdatedInfo>
    <Object id="XYZ">
        <FlightProfile>......<FlightProfile>
    </Object>
</PoliceReport>

So the desired processing behavior is this:

Read the next XML document.
If the XML document contains data about an object and there is insufficient information to process it then
    Wait until more info about the object arrives ....
    .......... time elapses ........... the updated
    info arrives: analyze the new info and
    if it indicates the object is an enemy aircraft then
    output an alert message else output ""

That algorithm involves dealing with time. 

Here's how to eliminate time from the equation.

-- As I described earlier --

/Roger


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.