Add option to get\set default demand pattern

also updates the net builder test
This commit is contained in:
Elad Salomons
2018-09-15 14:22:20 +03:00
parent 43e5c42d9d
commit dad11cce8d
4 changed files with 53 additions and 13 deletions

View File

@@ -138,6 +138,7 @@ Public Const EN_EMITEXPON = 3
Public Const EN_DEMANDMULT = 4
Public Const EN_HEADERROR = 5
Public Const EN_FLOWCHANGE = 6
Public Const EN_DEMANDDEFPAT = 7
Public Const EN_LOWLEVEL = 0 ' Control types
Public Const EN_HILEVEL = 1

View File

@@ -219,13 +219,14 @@ typedef enum { /* Demand model types. */
/// Simulation Option codes
typedef enum {
EN_TRIALS = 0,
EN_ACCURACY = 1,
EN_TOLERANCE = 2,
EN_EMITEXPON = 3,
EN_DEMANDMULT = 4,
EN_HEADERROR = 5,
EN_FLOWCHANGE = 6
EN_TRIALS = 0,
EN_ACCURACY = 1,
EN_TOLERANCE = 2,
EN_EMITEXPON = 3,
EN_DEMANDMULT = 4,
EN_HEADERROR = 5,
EN_FLOWCHANGE = 6,
EN_DEMANDDEFPAT = 7
} EN_Option;
typedef enum {