From cd6a2cb4ba04a21a4af21513b0c16911ebad481c Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 24 Apr 2024 11:17:14 +0200 Subject: more think --- docs/class-diag.puml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'docs') diff --git a/docs/class-diag.puml b/docs/class-diag.puml index e686fa3..85cb721 100644 --- a/docs/class-diag.puml +++ b/docs/class-diag.puml @@ -1,15 +1,23 @@ @startuml abstract class Node { /' (also ConcreteObserver) '/ - + update() + + label: string + + type: string + + addOutput(Net*) + + addInput(Net*) + - inputs: Net*[] + - outputs: Net*[] } class Net { /' (also ConcreteSubject) '/ - + setLevel(SignalLevel level) + - level: SignalLevel + + setLevel(SignalLevel) + ' only call notify when setLevel actually changes the level!!!!!!! } class Subject { - + attach(Observer* observer) - + detach(Observer* observer) + - observers: Observer*[] + + attach(Observer*) + + detach(Observer*) + notify() } interface Observer { @@ -45,11 +53,14 @@ Observer <|-[dashed]- Node Node -> "owner" Net Observer "*" - Subject -class Circuit { +class Parser { + loadFromFile() +} + +class CircuitFactory { + run() + + configure() } -' only call notify when setLevel actually changes the level!!!!!!! @enduml -- cgit v1.2.3