Howto UML: sub methods / calls / operations / procedures
- by hsmit
How would you guys model this in UML (in a sequence diagram)?
..
car1.drive();
..
...
in Car class:
..
drive(){
this.startEngine();
}
startEngine(){
this.getKey();
this.insertKey();
}
..
a small begin:
objx car1
---- ----
| |
| drive() |
|-------->| startEngine()
| |------------.
| | |
| |<-----------.
| |
But where comes the getKey() method?
Must this be communicated via another sequence diagram? Or is there a way to include sub procedures?