next up previous
Next: Commands Up: Part 2: Robust Site Previous: Friend and Enemy Data

BNF Conventions

The following BNF is used to describe the expected output for commands in Part 2.

<SiteType>:=military base|hospital|ground unit|air unit|civilian territory|unmapped|illegal
<Site>:=<SiteType>: <name> at (<latitude>,<longitude>)
<SiteList>:=<Site><nl><SiteList>|<Site><nl>
<SiteDoesNotExist>:=Error: The specified site does not exist.<nl>
<UnableToDeleteSite>:=Error: The Site cannot be deleted because it has been mapped.<nl>
<NoSitesEntered>:=No sites have been entered into the dictionary.<nl>
<SiteNotMapped>:=Error: The <Site> has not been mapped.<nl>
<SiteAlreadyMapped>:=Error: The <Site> has already been mapped.<nl>
<SiteAlreadyExists>:=Error: The specified <Site>, already exists.<nl>
<EmptyInventory>:=Error: Inventory is empty.<nl>
<HeapEmpty>:=Error: Heap is empty.<nl>
<BPTreesAlreadyInitialized>:=Error: B+ tree already initialized.<nl>
<InvalidBPTreeOrder>:=Error: B+ tree order must be greater than or equal to three (3).<nl>

NOTE: The <double> should be formatted to always have three (3) decimal places. This can be accomplished easily using the NumberFormat class in JAVA. Integers and doubles should NOT contain commas.



MM Hugue 2004-02-28

Web Accessibility