-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/ui-dev/unittestForFixDigitalOutput
# Conflicts: # ui/src/app/shared/genericComponents/modal/modal.ts
- Loading branch information
Showing
258 changed files
with
8,479 additions
and
4,292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
io.openems.backend.common/src/io/openems/backend/common/timedata/BackendTimedata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package io.openems.backend.common.timedata; | ||
|
||
import java.time.ZonedDateTime; | ||
import java.util.Set; | ||
import java.util.SortedMap; | ||
|
||
import org.osgi.annotation.versioning.ProviderType; | ||
|
||
import com.google.gson.JsonElement; | ||
|
||
import io.openems.common.exceptions.OpenemsError.OpenemsNamedException; | ||
import io.openems.common.jsonrpc.notification.AggregatedDataNotification; | ||
import io.openems.common.jsonrpc.notification.ResendDataNotification; | ||
import io.openems.common.jsonrpc.notification.TimestampedDataNotification; | ||
import io.openems.common.timedata.CommonTimedataService; | ||
import io.openems.common.types.ChannelAddress; | ||
|
||
@ProviderType | ||
public interface BackendTimedata extends CommonTimedataService { | ||
|
||
/** | ||
* Sends the data points to the Timedata service. | ||
* | ||
* @param edgeId The unique Edge-ID | ||
* @param data Table of timestamp (epoch in milliseconds), Channel-Address and | ||
* the Channel value as JsonElement. Sorted by timestamp. | ||
*/ | ||
public void write(String edgeId, TimestampedDataNotification data); | ||
|
||
/** | ||
* Sends the data points to the Timedata service. | ||
* | ||
* @param edgeId The unique Edge-ID | ||
* @param data Table of timestamp (epoch in milliseconds), Channel-Address and | ||
* the Channel value as AggregatedData. Sorted by timestamp. | ||
*/ | ||
public void write(String edgeId, AggregatedDataNotification data); | ||
|
||
/** | ||
* Sends the data points to the Timedata service. | ||
* | ||
* @param edgeId The unique Edge-ID | ||
* @param data Table of timestamp (epoch in milliseconds), Channel-Address and | ||
* the Channel value as ResendData. Sorted by timestamp. | ||
*/ | ||
public void write(String edgeId, ResendDataNotification data); | ||
|
||
/** | ||
* Queries the latest values which are before the given {@link ZonedDateTime}. | ||
* | ||
* @param edgeId the id of the edge | ||
* @param date the bounding date exclusive | ||
* @param channels the channels | ||
* @return the channel values | ||
* @throws OpenemsNamedException on error | ||
*/ | ||
public default SortedMap<ChannelAddress, JsonElement> queryFirstValueBefore(// | ||
final String edgeId, // | ||
final ZonedDateTime date, // | ||
final Set<ChannelAddress> channels // | ||
) throws OpenemsNamedException { | ||
return null; | ||
} | ||
|
||
} |
Oops, something went wrong.