4. Relate Entities

<< Click to Display Table of Contents >>

Navigation:  Examples  > Exercises - Start Here >

4. Relate Entities

Previous pageReturn to chapter overviewNext page
Show/Hide Hidden Text

In this run we will use an attribute to assign a discrete property to an entity, namely, a relationship to another entity. In concrete terms, we will assign to each cow a property called "pasture" whose value is the ID of a pasture entity. This will represent the relationship between each cow entity and the pasture entity where that cow will graze.

 

This exercise and the next two are featured in this video:

 

Getting Started with Ventity - Relate Entities

 

Stages of Ventity™ Modeling

In this run, we will ...

Stage 1 - Define entity types
Design the kinds of entities

 

Define a "cow" entity type and give each cow an attribute to represent a relationship to another entity: in this case, an assignment to a particular pasture entity.

 

Stage 2 - Initialize the model
Specify how many entities and their individual characteristics

 

Specify that there will be fourteen cows in this run of the model, and specify for each cow its grass consumption rate and which pasture it is in.

 

Stage 3 - Run the model

Configure time settings and perform calculations

 

Just push the green button.

 

Stage 4 - Examine results

See model behavior in graphs and tables

 

See how we can use attributes to partition entities into groups. In this case, including or excluding from output graphs different subgroups of cows, according to which pasture they are in.

 

 

hmtoggle_arrow1Create the Model by Copying an Existing Model

 

hmtoggle_arrow1Stage 1: Defining Entity Types

 

hmtoggle_arrow1Stage 2: Initialization

 

hmtoggle_arrow1Stage 3: Run the model

 

hmtoggle_arrow1Stage 4: Examine Results