CreateCity

Creates a city (a vertex) with the specified name, coordinates, radius, and color (the last two attributes will be used in later project parts). A city can be successfully created if its name is unique (i.e., there isn't already another city with the same name) and its coordinates are also unique (i.e., there isn't already another city with the same (x,y) coordinate). Names are case-sensitive.

Parameters (In output order)

  • name
  • x
  • y
  • radius
  • color

Possible <output>

  • (None)

Possible <error> types (In priority order)

  • duplicateCityName
  • duplicateCityCoordinates

<success> Example

   <success>
       <command name="createCity" id="1"/>
       <parameters>
           <name value="Annapolis"/>
           <x value="12"/>
           <y value="14"/>
           <radius value="15"/>
           <color value="red"/>
       </parameters>
       <output/>
   </success>