Skip to content
Snippets Groups Projects
Commit b656d6a1 authored by Johannes Hitzinger's avatar Johannes Hitzinger
Browse files

added plantuml diagrams

parent 17145485
Branches
No related tags found
No related merge requests found
@startuml
class Participant{
- secretKey
+ publicKey
+ accountBalance: Euro
+ publicIP
+ updateRemoteParticipants(new_rps)
+ findOffers(power, time)
+ findRequests(power, time)
+ getGridVoltage()
}
class RemoteParticipant{
+ publicKey
+ publicIP
+ updateExchanges(new_exs)
}
abstract class Exchange{
power: Watt
pricePerWatt: Euro
}
class Trade {
+ power: Watt
+ pricePerWatt: Euro
+ signatureOffer
+ signatureRequest
+ verifyTrade()
+ calculateRoute()
}
class Offer
class Request
class Cable{
- privateKey
+ publicKey
+ maxCapacity: Watt
+ usedCapacity: Watt
+getGridVoltage()
+calculateLoss(Trade)
}
Exchange <|-- Offer
Exchange <|-- Request
Cable "1..1" - Participant
Cable "1..1" - RemoteParticipant
Cable "1..1" - Exchange
Cable "n..n" - Trade
Cable "n..n" - Cable
Participant "0..n" - RemoteParticipant
RemoteParticipant "0..n" - Exchange
Trade "1..1" - "n..1" Offer
Trade "1..1" -up "n..1" Request
Trade "verifies 2 other" -up Trade
Trade "verified from 2 other" - Trade
Trade "1..n (history)" -up Participant
@enduml
\ No newline at end of file
@startuml
actor Participant
actor RemoteParticipant
@enduml
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment