Whisprin / pgf-umlsd

Automatically exported from code.google.com/p/pgf-umlsd
0 stars 0 forks source link

Enhancement #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Dear editor,
is it possible to have an outside call beein implemented?

For my class i need an instance to be activated from an unknown invisible 
object from the outside. This means the Diagramm starts with objectA receiving 
a call and then gets active, finishing its tasks and sending a return to the 
outside again.

Thanks :)

Original issue reported on code.google.com by sharkysh...@googlemail.com on 21 Oct 2013 at 1:31

GoogleCodeExporter commented 9 years ago
Hi,

could you try current dev version: 
https://code.google.com/p/pgf-umlsd/source/browse/dev/pgf-umlsd.sty

the simple usage: 
https://code.google.com/p/pgf-umlsd/source/browse/dev/demo/call-from-outside.tex

I hope this is what you wanted.

Original comment by xuyuan...@gmail.com on 22 Oct 2013 at 8:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
the following sequencediagramm
\begin{figure}[h]
 \centering
  \begin{sequencediagram}
    \newhiddenthread{t}{mythread}
    \newinst{peter}{peter}
    \newinst[2]{lampe}{lampe}
    \newinst[2]{toilette}{toilette}
    \newinst[2]{wecker}{wecker}

    \begin{call}{peter}{schlafenBis("6:45")}{peter}{}\end{call}
    \begin{call}{peter}{gibZeit() : String}{wecker}{}\end{call}
    \begin{call}{peter}{geheZumBad()}{peter}{}\end{call}
    \begin{call}{peter}{einschalten()}{lampe}{}\end{call}
    \begin{call}{peter}{spülen()}{toilette}{}\end{call}
  \end{sequencediagram}
  \caption{Sequenzdiagramm}
\end{figure}

produces many errrors :( but yes this is what i wanted :)
errors:
Package pgf Error: No shape named inst1 is known \newinst{peter}{peter}
Package pgf Error: No shape named inst2 is known \newinst[2]{lampe}{lampe}
Package pgf Error: No shape named inst3 is known \newinst[2]{toilette}{toilette}
Package pgf Error: No shape named inst4 is known \newinst[2]{wecker}{wecker}

Original comment by sharkysh...@googlemail.com on 23 Oct 2013 at 10:27

GoogleCodeExporter commented 9 years ago
Still got these problems, yre you still working on this issue?

Original comment by sharkysh...@googlemail.com on 28 Oct 2013 at 10:50

GoogleCodeExporter commented 9 years ago
Taking your code
\begin{figure}[h]
\begin{sequencediagram}
\newhiddenthread{t}{:Thread}
\newinst[1]{i}{:Instance}

\begin{call}{t}{function()}{i}{return value}
\end{call}
\end{sequencediagram}
\end{figure}

Produces error : Package pgf Error: No shape named inst1 is known 
\newinst[1]{i}{:Instance}

Original comment by sharkysh...@googlemail.com on 28 Oct 2013 at 10:51

GoogleCodeExporter commented 9 years ago
I don't have this problem... can you provide the whole tex file which can 
produce error?

Original comment by xuyuan...@gmail.com on 4 Nov 2013 at 2:31

GoogleCodeExporter commented 9 years ago
\documentclass{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{a4paper, top=20mm, left=20mm, right = 20mm, bottom = 20mm, headsep = 
5mm, footskip = 5mm}
\usepackage{amsmath}
\usepackage{fancyhdr}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\usepackage{longtable}
\usepackage{enumerate}
\usepackage{lscape}
\usepackage{pdfpages} 
\usepackage{svg}
\usepackage{pgf-umlsd}
\usepgflibrary{arrows}

%Dokumentanfang
\begin{document}
\begin{figure}[h]
\begin{sequencediagram}
\newhiddenthread{t}{:Thread}
\newinst[1]{i}{:Instance}

\begin{call}{t}{function()}{i}{return value}
\end{call}
\end{sequencediagram}
\end{figure}

\end{document}

Original comment by sharkysh...@googlemail.com on 10 Nov 2013 at 5:03

GoogleCodeExporter commented 9 years ago
Package pgf Error: No shape named inst1 is known \newinst[1]{i}{:Instance}

Original comment by sharkysh...@googlemail.com on 10 Nov 2013 at 5:04