XML Entity Creation Schema - Lecture Notes | COMP 410, Study notes of Software Engineering

Material Type: Notes; Class: SOFTWARE ENGINEERING METHODOLOGY; Subject: Computer Science; University: Rice University; Term: Unknown 2006;

Typology: Study notes

Pre 2010

Uploaded on 08/16/2009

koofers-user-2vc
koofers-user-2vc 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Jack Chi
May 07, 2006
Comp 410: SkyNet
XML Entity Creation Schema
The following will describe how to create a SkyNet Simulation XML file and properly
load the schema into the Database entities with attributes.
All SkyNet related Entity Creation XML Schema needs to have the following identifier:
<?xml version="1.0" standalone="yes" ?>
- <testDataset xmlns="http://skynet.rice.edu/SkyNetDataSet.xsd">
Here’s an example of how the structure of the XML Entity Creation is setup:
<Entity>
<Guid>”String representation of the Guid of the Entity”</Guid> this tag is optional; if it
is not provided, it will be generated upon creation
<Attribute>
<Guid>”String representation of the Guid of the attribute</Guid>
<Name>”String representation of the name of the attribute”</Name>
<Value>”String representation of the value of the attribute”</Value> this value
can be a double and the type will be automatically casted inside addAttribute in
Entity
<IsString>”Boolean value”</IsString>
</Attribute>
pf2

Partial preview of the text

Download XML Entity Creation Schema - Lecture Notes | COMP 410 and more Study notes Software Engineering in PDF only on Docsity!

Jack Chi May 07, 2006 Comp 410: SkyNet XML Entity Creation Schema The following will describe how to create a SkyNet Simulation XML file and properly load the schema into the Database entities with attributes. All SkyNet related Entity Creation XML Schema needs to have the following identifier:

- Here’s an example of how the structure of the XML Entity Creation is setup: ”String representation of the Guid of the Entity” this tag is optional; if it is not provided, it will be generated upon creation ”String representation of the Guid of the attribute ”String representation of the name of the attribute” ”String representation of the value of the attribute” this value can be a double and the type will be automatically casted inside addAttribute in Entity ”Boolean value”

The number of Entity and Attribute occurrences can be unbounded. The entity creation is modeled inside Simulation -> Behavior namespace since we want to create entities dynamically at run time. For more information on the Behavior interface, look at IWorldBehavior.cs inside SkyNet-> ServerShared for the common shared interfaces used by the server model of SkyNet. The DataSet used to translate SkyNet database into a structural form is called “SkyNetDataSet” in Shared. The XML loading/saving models after the design of the database. In order to fully understand the conventions used, please read the database documentation or talk to John Yue (xy1@) and Sarah McGee (smcgee@). The basic structure of the XML format is based on Rows and Columns, EntityRows() and AttributeRows(). For each row, you can get the Entity and Attribute for each row. In the saving process, the Guids are also stored so when the XML is loaded back into the database it will be mirrored.