Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Enhancement #22

Open
GoogleCodeExporter opened this issue May 7, 2015 · 8 comments
Open

Enhancement #22

GoogleCodeExporter opened this issue May 7, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

\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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant