Creating an Entity Type
We recommend that you create your Entity Types in the LEGION Data Template (see Entities worksheet ) but you can create them manually in LEGION Model Builder as described here.
To create an Entity Type:
The left hand pane of the dialog box already contains a Default Entity Type, based on parameters associated with UK commuters. You could use this type for your model, or proceed to create your own.
- Click the New button in the top left-hand corner.
- Enter a meaningful name for the Entity Type in the highlighted box and press Enter.
- On the 'Appearance' tab select a colour for the Entity Type from the Colour drop-down list.
- For the 'Gender Ratio', leave at 50/50 or enter new percentages for 'Males' and 'Females' if required.
-
For 'Entity Sizes', select one of the following:
- System defined
- Size profiles – if you select this option, choose Size Profiles from the drop-down lists labelled 'Male' and 'Female' (you may need to create these profiles; see Creating an Entity Size Profile).
-
Select the
Luggage Size option that matches your Entity
Type:
- No luggage
- System random (automatic allocation of none, or small, medium, large ranges)
- Size Profile (select a profile from the drop-down list; you may need to create one or more profiles–see Creating a Luggage Size Profile ).
- Click on the Profile tab of the ‘Edit Entity Type’ dialog box.
-
Select an Entity Profile from the drop-down list.
The different Entity Profiles are:
If you want to apply a user-defined Speed Profile rather than a system profile, see Creating a User-defined Speed Profile , otherwise continue to the next step.
-
Choose a
Speed Profile from the Speed Profile drop-down
menu.
Depending on the Entity Profile, the Speed Profile options are:
- Click Apply or OK to save the new Entity Type. It is added to the ‘Data’ tab of LEGION Model Builder Object Directory, under Entity Type.
A note on Speed Profiles
An Entity’s preferred speed is rarely its actual speed within a simulation. The latter is a function of crowding, geometry and context. It would be a mistake to try and ‘program’ an Entity to walk at a certain speed.