Skip to content

backman-git/python-UML-sequence-diagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-UML-sequence-diagram

A python tool for generating sequence diagram schema of plantUML.

This tool is used for generating sequence diagram schema of platUML.

The more you play, the more fun you have! :>

plantUML SD schema: http://plantuml.com/sequence-diagram

Example Demo code :

class Motor : def setMotorName(self,name): self.motorName = name

def driveBy(self,human):
	self.driver =human
	print self.motorName+" Motor drived by "+self.driver.driverName+"."
	human.say("That is awesome")

class Human: def setHumanName(self,hName): self.driverName =hName

def say(self,strs):
	print "human say: "+strs+"."

if name =='main':

motor=Motor()
motor.setMotorName("kawasaki")
human=Human()
human.setHumanName("Backman")
motor.driveBy(human)

The tool output :

main ->motor:setMotorName main ->human:setHumanName main ->motor:driveBy motor ->human:say

image

About

A python tool for generating sequence diagram schema of plantUML.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages