...
Code Block |
---|
float[] convertDischargeToStage(float[] dischargesin0, String locationIdin1, long timein2); |
Converts discharge value to stage using a rating curve at a specific location valid for a particular moment in time
- in0 - locationId: Identifier of the rating cruve location
- in1 - time: time for which the rating curve should be valid
- in2 - discharge: array of discharges to be converted to stage
- returns: array of values respresenting stage
...
Code Block |
---|
void saveDataSet(String idin0, String descriptionin1, byte[] dataSetin2, String nodeIdin3, String clientIdin4); |
Saves client data set to local datastore
- in0 - clientId: (Optional) File name of service configuration file located in the OC configuration directory 'PiServiceConfigFiles'. This file is an instance of the FewsPiServiceConfig XSD.
- in1 - id: Identifier of client data set
- in2 - description: (Optional) description of the client dataset content
- in3 - dataSet: Byte object holding the client dataset
- in4 - nodeId: Segment/nodeId which is associated to this client dataset
Code Block |
---|
void updateDataSet(String idin0, String descriptionin1, byte[] dataSetin2, String nodeIdin3, String clientIdin4); |
Updates existing client data set in local datastore
- in0 - clientId: (Optional) File name of service configuration file located in the OC configuration directory 'PiServiceConfigFiles'. This file is an instance of the FewsPiServiceConfig XSD.
- in1 - id: Identifier of client data set
- in2 - description: (Optional) description of the client dataset content
- in3 - dataSet: Byte object holding the client dataset
- in4 - nodeId: Segment/nodeId which is associated to this client dataset
Code Block |
---|
void deleteDataSet(String idin0, String clientIdin1); |
Removes existing client data set from local datastore
- in0 - clientId: (Optional) File name of service configuration file located in the OC configuration directory 'PiServiceConfigFiles'. This file is an instance of the FewsPiServiceConfig XSD.
- in1- id: Identifier of client data set
...