1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| Quintiq file version 2.0
| #parent: #root
| StaticMethod Create (
| Unit unit,
| RoutingStep routingstep,
| Boolean isfromdb
| ) as Operation
| {
| Description: 'Add single unit to routing step create an operation'
| TextBody:
| [*
| // Adhi Feb-10-2016 (created)
| routingid := routingstep.RoutingID();
| id := Operation::GetConcatenatedID( routingid, routingstep.Name(), unit.ID() );
|
| operation := Operation::Create( id,
| unit,
| id,
| routingstep,
| Duration::Zero(),
| Duration::Zero(),
| 1.0,
| false,
| 0.0,
| false,
| 0.0,
| 0.0,
| 0.0, // CO2 emission
| false,
| isfromdb );
|
|
| return operation;
| *]
| }
|
|