CN2SK: Type column and property in library

Uit COINS2
Ga naar: navigatie, zoeken
  • Start the COINS Navigator 2 application.
    Start the COINS Navigator 2 application.

Edit the previous created MyLibrary model

  • Open the previous created "MyLibrary" model.
    Open an existing container.
  • Select the "Properties"-tab and next the "hasProperties" property.
    Select the "hasProperties" property.
  • Open the create subproperty form.
    Open the create subproperty form.
  • Give the new property an identification.
    Open the create subproperty form.
  • Restrict the domain specification to "Column".
    Specify the property domain.
  • Restrict the range specification to "FloatProperty".
    Specify the property domain.
  • Give the property a name and click the create button.
    Specify the property name.
    Create the property.
  • Select the "Classes"-tab and next the "Column"-class.
    Select the Column class.
  • Select the "Restrictions"-tab and then click the create restriction button.
    Select the Restrictions tab.
    Create restriction button.
  • Select the "hasHeight"-property.
    Select restriction property.
  • Select "Cardinality" as restriction type, specify its value and click the create button.
    Select restriction type.
    Specify restriction value.
    Create button.
    Class property restriction.
  • Save the library in a container.
    Save the library in a container.

Create an instance model that uses the libary

  • Create a new model and give it a name.
    Create a new model.
    Create a new model.
  • Add the library as an imported model.
    Import the library.
  • Create a float property, next give it a name and a value.
    Select static type float property.
    Static float property name.
    Static float property value.
  • Create an object with static type "Object" and dynamic type "Column".
    Static type "Object" with dynamic type "Column".
  • Select the "Properties"-tab/"Dynamic properties"-section and select the float property as the value of the "column height"-property.
    Dynamic properties.
    Dynamic property value.
    Canvas presentation.

-> Return to overview COINS Navigator Starter Kit.