-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- messages are no longer read from files, but from DeviceMessage - Simulator state is kept across messages (but not persisted over restarts) - Message is updated with this simulator state before sending - Simulator emulates the capacitor; after 5 messages it takes a break Signed-off-by: Sander Verbruggen <sander.verbruggen@alliander.com>
- Loading branch information
Showing
13 changed files
with
62 additions
and
233 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
12 changes: 12 additions & 0 deletions
12
...ion/src/main/kotlin/org/gxf/crestdevicesimulator/simulator/message/CrestNamingStrategy.kt
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,12 @@ | ||
// SPDX-FileCopyrightText: Copyright Contributors to the GXF project | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package org.gxf.crestdevicesimulator.simulator.message | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies.NamingBase | ||
|
||
class CrestNamingStrategy : NamingBase() { | ||
override fun translate(propertyName: String?): String? { | ||
return if (propertyName.equals("cid")) "cID" else propertyName?.uppercase() | ||
} | ||
} |
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
54 changes: 0 additions & 54 deletions
54
application/src/main/resources/messages/kod-reboot-success-message.json
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
application/src/main/resources/messages/psk-change-failure-message.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.