Definition in file loadshape.c.
Go to the source code of this file.
Functions | |
| int | convert_from_loadshape (char *string, int size, void *data, PROPERTY *prop) |
| convert from a loadshape to a string | |
| int | convert_to_loadshape (char *string, void *data, PROPERTY *prop) |
| convert from a string to a loadshape | |
| int | loadshape_create (loadshape *data) |
| Create a loadshape. | |
| int | loadshape_init (loadshape *ls) |
| int | sample_from_diversity (double *param, char *value) |
| Convert a truncated normal distribution description string (min<mean~stdev<max) to a sample. | |
| unsigned char | schedule_string_to_weekday (char *days) |
| Convert a string representing weekdays (UMTWRFSH) to a scheduled loadshape parameter. | |
| int loadshape_create | ( | loadshape * | data | ) |
| int loadshape_init | ( | loadshape * | ls | ) |
| ls | load shape |
Definition at line 540 of file loadshape.c.
References MPT_POWER, MPT_TIME, MT_ANALOG, MT_MODULATED, MT_PULSED, MT_QUEUED, MT_SCHEDULED, output_error(), and random_uniform().
Referenced by convert_to_loadshape().
| int sample_from_diversity | ( | double * | param, | |
| char * | value | |||
| ) |
Convert a truncated normal distribution description string (min<mean~stdev<max) to a sample.
Definition at line 438 of file loadshape.c.
References max, min, and random_normal().
Referenced by convert_to_loadshape().
| unsigned char schedule_string_to_weekday | ( | char * | days | ) |
Convert a string representing weekdays (UMTWRFSH) to a scheduled loadshape parameter.
Definition at line 424 of file loadshape.c.
Referenced by convert_to_loadshape().