Problem

The problem to be solved is expressed using the keyword Problem. Syntactically, a problem is a Model without arguments. For each system design project to be represented in DEPS, there is one and only one Problem defined. The problem is broken down into Elements. Each Element is an instance of a Model. Since each Model can also be made up of Elements, the Problem is the root of a hierarchy of Elements.

Note

There is one and only one Problem in a DEPS Project.

Syntax

Then, a Problem is defined according to the following syntax:

<Problem> ::=
               Problem     <ProblemName>
               Constants   <listOfConstantDeclarationOrDefinition>
               Variables   <listOfVariablesDefinition>
               Elements    <ListOfElementsDeclarationOrDefinition>
               Properties  <ListOfProperties>
               End

Examples

Model Resistor()
Constants

Variables
V : Voltage;
I : Current;
R : Resistance;

Elements

Properties
V = R*I;
End

Problem ResProblem
Constants
e : Voltage = 10;

Variables

Elements
Res1 : Resistor();

Properties
Res1.V = e;
Res1.I = 10;
End