Editing the data model

You can edit the basic data model in the following ways:
  • Add and remove rows (a row represents an object in the data model)
  • Add, remove, and rename columns (a column represents a property of the objects in the data model)
  • Change cell values (a cell represents a property of a specific object)
  • Remove all objects
  • Restore the data model to its initial state
  • Paste data from the clipboard
For example, you could remove the x and y columns if you do not want an X/Y Diagram. You can create a Layout Diagram without any specific layout attributes.
To delete all the data values, click Remove All Rows. To retrieve the values you saw initially, click Reset to Default.
Properties id, tag, from and to are mandatory for the SDM model and therefore cannot be removed or renamed by the user.
Paste from Clipboard replaces the contents of the current table by the information present in the clipboard. It asks whether you want the column names to be named based on the first row. If so, the first line of data is used to give the column names. If not, the column names are named as A, B, C, and so on, and you can rename them later.
diada_inmemory115.png
Editing the in-memory data model
To create a simple network model:
  1. Click each name value.
  2. Rename the nodes to Paris, MountainView, Frankfurt, and Singapore.
  3. Click Add Column.
  4. Add a column called status , one called minor , and one called major .
    diada_inmemory216.png
    A simple network model in memory
  5. Click in the new columns to enter the data values as shown in the following table.
      status minor major
    Paris Available 2 0
    Mountain View Unavailable 4 2
    Frankfurt Available 0 0
    Singapore Available 0 1
  6. Click Next to select the type of diagram.
  7. Select the X/Y Diagram option.
  8. Click Finish to exit the wizard.
  9. Click File > Save As and save the network diagram as network.idpr.
  10. Keep this diagram open to use in the next section.
diada_network17.png
The initial network diagram