Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev branch for labview (not to be merge but to be kept updated if needed) #45

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
18 changes: 8 additions & 10 deletions docs/task.proto.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package: platform.v1

<!-- markdownlint-disable -->
import "google/protobuf/any.proto"; <!-- markdownlint-disable -->
Messages to support coordination among processes/services in the platform.
At the time being this is a proof of concept. Different changes may occurs
when we actually start to use the event driven approach to coordinate
Expand All @@ -9,9 +9,8 @@ services.

## Imports

| Import | Description |
|---------------------------|-------------|
| google/protobuf/any.proto | |
| Import | Description |
|--------|-------------|



Expand Down Expand Up @@ -100,9 +99,8 @@ direction LR

class Parameter {
+ string name
+ google.protobuf.Any value
+ string value
}
Parameter --> `google.protobuf.Any`

```
### Task Diagram
Expand Down Expand Up @@ -162,10 +160,10 @@ Notification --> `Parameter`
A parameter of a `Task` or `Notification`


| Field | Ordinal | Type | Label | Description |
|---------|---------|-----------------------|-------|----------------------|
| `name` | 1 | `string` | | The parameter name |
| `value` | 2 | `google.protobuf.Any` | | The parameter value |
| Field | Ordinal | Type | Label | Description |
|---------|---------|----------|-------|----------------------|
| `name` | 1 | `string` | | The parameter name |
| `value` | 2 | `string` | | The parameter value |



Expand Down
136 changes: 66 additions & 70 deletions pkg/platform/v1/task.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions proto/grid/v1/data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ enum DataType {
DATA_TYPE_VOLTAGE_SEQUENCE_ZERO = 42; //Voltage zero sequence in a three phase circuit. It maps to Phasor.
DATA_TYPE_DISCRETE = 43; //Discrete. It maps to Discrete.
DATA_TYPE_ANALOG = 44; //Analog. It maps to Analog.
DATA_TYPE_NORMALIZED_RESIDUAL = 45; //Normalized Residual. It maps to Analog.
DATA_TYPE_OBJECTIVE_FUNCTION = 46; //Objective Function. It maps to Analog.
DATA_TYPE_SWITCH_POSITION_CHECK = 47; //Switch Position Check. It maps to Boolean.
DATA_TYPE_TEMPERATURE_ALARM = 48; //Temperature Alarm. It maps to Boolean.
DATA_TYPE_PRESSURE_ALARM = 49; //Pressure Alarm. It maps to Boolean.
DATA_TYPE_DOOR_ALARM = 50; //Door Alarm. It maps to Boolean.
}

/* A single data.
Expand Down
Loading