New model from scratch
This page describes how to create a new Telosys model from scratch.
Create a new model
To create a new model use the nm
("New Model") command
Example :
nm cars
will create the "cars" model
Use the lm
(List Models) command to see all models defined in the current project
When a new model has been created it is set as the "current model"
Example :
Create an entity in the current model
The le
(List Entities) command can be used to see all the entities of the current model
Obviously, at the beginning there's no entity.
To create an entity use the ne
(New Entity) command
Examples :
ne Car
will create the "Car" entity in the "cars" model
ne Driver
will create the "Driver" entity in the "cars" model
Example :
Edit an entity
To define an entity you must define all its attributes, for that use the ee
(Edit Entity) command.
Example :
ee Driver
will launch the external editor to edit the "Driver.entity" file.
Telosys cannot launch an external editor if your Operating System doesn't have a GUI, for example a Linux server without GUI. In this case you will have to edit the ".entity" files outside in a separated console.
Delete an entity
To delete an entity in the current model use the "de" (Delete Entity) command.
Examples :
de Driver
will delete the "Driver" entity
Delete a model
To delete a model use the "dm" (Delete Model) command.
Example :
dm cars
will delete the "cars" model
Last updated