th.co.edge.jseq.argouml
Class SequenceDiagram

java.lang.Object
  extended by th.co.edge.jseq.argouml.SequenceDiagram

public class SequenceDiagram
extends java.lang.Object

A SequenceDiagram represents a sequence diagram as a PGML document.


Constructor Summary
SequenceDiagram(ru.novosoft.uml.foundation.core.MNamespace namespace, Activation activation)
          Creates a new SequenceDiagram depicting a given root activation.
 
Method Summary
 void addCall(ru.novosoft.uml.behavior.common_behavior.MObject sender, ru.novosoft.uml.behavior.common_behavior.MObject receiver, ru.novosoft.uml.behavior.common_behavior.MLink link)
          Adds an arrow representing a method call to this diagram, from a given sender to a given receiver represented by activation boxes in the resulting diagram.
 void addObject(ru.novosoft.uml.behavior.common_behavior.MObject object)
          Adds a life-line to this diagram, represented by an MObject.
 void deactivate(ru.novosoft.uml.behavior.common_behavior.MObject object)
          Deactivates the given MObject, that is, returns from a method call.
 org.w3c.dom.Document getDocument()
          Returns this sequence diagram as a PGML XML Document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceDiagram

public SequenceDiagram(ru.novosoft.uml.foundation.core.MNamespace namespace,
                       Activation activation)
                throws javax.xml.parsers.ParserConfigurationException
Creates a new SequenceDiagram depicting a given root activation.

Parameters:
namespace - only used to generate the description element in the PGML file
activation - the root activation to depict as a sequence diagram
Throws:
javax.xml.parsers.ParserConfigurationException - if there is some serious error in the XML configuration (should normally not occur)
Method Detail

getDocument

public org.w3c.dom.Document getDocument()
Returns this sequence diagram as a PGML XML Document.

Returns:
this sequence diagram as a PGML XML Document

addObject

public void addObject(ru.novosoft.uml.behavior.common_behavior.MObject object)
Adds a life-line to this diagram, represented by an MObject.

Parameters:
object - the MObject to add

addCall

public void addCall(ru.novosoft.uml.behavior.common_behavior.MObject sender,
                    ru.novosoft.uml.behavior.common_behavior.MObject receiver,
                    ru.novosoft.uml.behavior.common_behavior.MLink link)
Adds an arrow representing a method call to this diagram, from a given sender to a given receiver represented by activation boxes in the resulting diagram.

Parameters:
sender - the MObject representing the caller
receiver - the MObject representing the callee
link -

deactivate

public void deactivate(ru.novosoft.uml.behavior.common_behavior.MObject object)
Deactivates the given MObject, that is, returns from a method call. The activation box currently associated with this object will be ended.

Parameters:
object - the MObject to deactivate


Copyright © 2008 Edge Software, Co., Ltd.. All Rights Reserved.