-
Notifications
You must be signed in to change notification settings - Fork 3
/
architecture.puml
58 lines (52 loc) · 1.79 KB
/
architecture.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@startuml
title __ROBOT's Class Diagram__\n
namespace swarm {
namespace robot {
abstract class swarm.robot.Robot {
# id : int
# reality : char
+ Robot()
+ delay()
+ getId()
+ handleSubscribeQueue()
+ reset()
+ run()
+ setup()
+ start()
+ stop()
- handlePublishQueue()
}
}
}
namespace swarm {
namespace robot {
class swarm.robot.VirtualRobot {
+ VirtualRobot()
+ loop()
+ interrupt()
+ sensorInterrupt()
+ communicationInterrupt()
}
}
}
swarm.robot.Robot .up.|> java.lang.Runnable
swarm.robot.Robot .up.|> swarm.Interfaces.IRobotState
swarm.robot.Robot o--left swarm.robot.sensors.ColorSensor : colorSensor
' swarm.robot.Robot o-- swarm.robot.helpers.Coordinate : coordinates
' swarm.robot.Robot o-- swarm.robot.communication.DirectedCommunication : directedComm
swarm.robot.Robot o-- swarm.robot.sensors.DistanceSensor : distSensor
' swarm.robot.Robot o-- swarm.robot.helpers.MotionController : motion
swarm.robot.Robot o-- swarm.robot.indicator.NeoPixel : neoPixel
' swarm.robot.Robot o-- swarm.robot.sensors.ProximitySensor : proximitySensor
swarm.robot.Robot o-up- swarm.robot.helpers.RobotMQTT : robotMQTT
' swarm.robot.Robot o-- swarm.mqtt.RobotMqttClient : robotMqttClient
swarm.robot.Robot o-- swarm.robot.communication.SimpleCommunication : simpleComm
' swarm.robot.Robot o-- swarm.Interfaces.IRobotState.robotState : state
swarm.robot.VirtualRobot -left-|> swarm.robot.Robot
'right footer
'
'
'PlantUML diagram generated by SketchIt! (https://bitbucket.org/pmesmeur/sketch.it)
'For more information about this tool, please contact [email protected]
'endfooter
@enduml