sequenceDiagram
MOBILE APP ->> EA MSP: POST /home/commands/START_CHARGE
EA MSP ->> CPO: POST /2.2/commands/START_SESSION
CPO -->> EA MSP: CommandResponse(result = ACCEPTED)
EA MSP -->> MOBILE APP: HomeCommandResponse(transactionId = 123)
CPO ->> L2 CHARGER: RemoteStartTransaction.req
L2 CHARGER -->> CPO: RemoteStartTransaction.conf
CPO ->> EA MSP: POST /commands/response/START_CHARGE/EAH/{id}
CommandResult(result = ACCEPTED)
EA MSP ->> CPO: DELETE /2.2/chargingprofiles?{charging_profile_id}
CPO ->> L2 CHARGER: ClearChargingProfile.req
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<mxfile host="app.diagrams.net" modified="2021-07-12T20:14:03.079Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15" etag="X9oThd8gt5rNtEYpEnk1" version="14.8.3" type="device"><diagram id="w0ffYMHIuPbmemYXbMQQ" name="Page-1">7V1bk5u4Ev41rjr7YBdCXB/tueRsVXJ2ciZbOfvkwqCxSTAQwHPZX78SIAySsMEG7JmDk0pACAla3V+3ultiAm+2r58iK9x8CRzkTWTJeZ3A24ksywAA/B8pectKgCHlJevIdbIyaV/w6P6N8oq0dOc6KM7LsqIkCLzEDauFduD7yE4qZVYUBS/Vak+B51QKQmuNKo9BCh5ty0Ncte+uk2yyUkMt1f43ctcb2jOQ8itbi1bOC+KN5QQvpSJ4N4E3URAk2dH29QZ5hHpVutzXXC0eLEJ+0uSGnbuYgx/bxbefty/ui/1292PhTDU1a+bZ8nb5G09kzcMNLuLQ8sljJ285LbRfO/KsCzvwgmgC5/hitF79K71/It/gf2W1OITgN3IMFynR/WT6ZG1d7y27DbdlbcP0IoQK/t/aWn8HpDe0XaGIu1y0yl3ZIO8ZJa5t4Ys+wq/Q/NYoWAVJ0OIGK3Itr75+bPnxNEaR+1R98TjlafLaQAlfi2sry/65joKd70xZgiqgRFGpdKz+th8FfLRORyMMpg56nu4QmD6HNh09zAfZAGa1chYsxlIOA9dPUtlQF/gv6UKaqLekJ3w2IyNZKWDP9WoB4M9IG9UC9lyvFgC2ecD0D9gHLBVwZ5XmJaZ/qfSA+C9cBLvEc310U6AIGaV1ZDkulq6bbHxu/cBHhOeSr |
This file contains hidden or 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
import java.util.PriorityQueue; | |
public class PriorityQueueExample { | |
public static void main(String[] args) { | |
PriorityQueue<Integer> pQueue = new PriorityQueue<Integer>((a, b) -> a - b); | |
pQueue.add(3); | |
pQueue.add(1); | |
pQueue.add(2); | |
pQueue.add(5); | |
pQueue.add(4); |
This file contains hidden or 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
// initialize list | |
LinkedList<String> queue = new LinkedList<String>(); | |
// Queue state: [] | |
queue.add("Hello"); | |
queue.add("World"); | |
queue.add("!"); | |
// Queue state: ["Hello", "World", "!"] |
This file contains hidden or 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
// initialize empty stack | |
Deque<String> stack = new ArrayDeque<String>(); | |
// Stack state: [] | |
// push elements onto stack | |
stack.push("Hello"); | |
stack.push("World"); | |
stack.push("!"); |
This file contains hidden or 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
git checkout master | |
git merge hotfix |
This file contains hidden or 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
public class ShapeColorDemo { | |
public static void main(String[] args) { | |
Shape redCircle = new Circle(new Red(), 2, 3, 5); | |
Shape blueCircle = new Circle(new Blue(), 5.5, 6.3, 20); | |
Shape redRectangle = new Rectangle(new Red(), 0, 0, 5, 7); | |
Shape blueRectangle = new Rectangle(new Blue(), 20, 13, 150, 242.7); | |
redCircle.draw(); | |
blueCircle.draw(); |
This file contains hidden or 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
public class Rectangle extends Shape { | |
private double x, y, height, width; | |
public Rectangle(DrawAPI drawAPI, double x, double y, double height, double width) { | |
super(drawAPI); | |
this.x = x; | |
this.y = y; | |
this.height = height; | |
this.width = width; | |
} |
This file contains hidden or 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
public class Circle extends Shape { | |
private double x, y, radius; | |
public Circle(DrawAPI drawAPI, double x, double y, double radius) { | |
super(drawAPI); | |
this.x = x; | |
this.y = y; | |
this.radius = radius; | |
} |
NewerOlder