TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.hyades.uml2sd.trace.loaders
Class ThreadInteractions

java.lang.Object
  extended by org.eclipse.hyades.uml2sd.trace.loaders.BaseLifelineLoader
      extended by org.eclipse.hyades.uml2sd.trace.loaders.ThreadInteractions
All Implemented Interfaces:
ILifelineLoader, IUml2SDLoader

public class ThreadInteractions
extends BaseLifelineLoader

This class aims to populate a Thread Interaction UML2 Sequence Diagram.


Constructor Summary
ThreadInteractions()
          Constructor
 
Method Summary
 java.lang.String getDistinguishedLifeLineTitle(org.eclipse.emf.ecore.EObject eo, int rank)
          Returns the distinguishedtitle of a lifeline
 java.lang.String getFinalTitleString()
          Return the convenient title when this loader is the one
 int getLifeLineCategory(org.eclipse.emf.ecore.EObject to)
          Get the category of a lifeline
 org.eclipse.emf.ecore.EObject getLifelineEObjectFromMethodInvocation(TRCFullMethodInvocation mi)
          Associates a EObject denoting a lifeline to a method invocation
 java.lang.String getLifeLineId(org.eclipse.emf.ecore.EObject eo)
          The runtimeId of agentProxy and the lifeline title
 java.lang.String getLifeLineTitle(org.eclipse.emf.ecore.EObject to, boolean long_)
          Returns the title of a lifeline
 java.lang.String getLifelineType(org.eclipse.emf.ecore.EObject eObject)
           
 java.lang.String getLifelineTypeName()
           
 
Methods inherited from class org.eclipse.hyades.uml2sd.trace.loaders.BaseLifelineLoader
aboutToBeReplaced, drillDownEnabled, getMessageTypeName, getParent, getTitleString, setViewer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadInteractions

public ThreadInteractions()
Constructor

Method Detail

getLifelineEObjectFromMethodInvocation

public org.eclipse.emf.ecore.EObject getLifelineEObjectFromMethodInvocation(TRCFullMethodInvocation mi)
Description copied from interface: ILifelineLoader
Associates a EObject denoting a lifeline to a method invocation

Parameters:
mi - the method invocation
Returns:
the EObject denoting the lifeline that must contain this method invocation
See Also:
ILifelineLoader.getLifelineEObjectFromMethodInvocation(org.eclipse.hyades.models.trace.TRCFullMethodInvocation)

getLifeLineCategory

public int getLifeLineCategory(org.eclipse.emf.ecore.EObject to)
Description copied from interface: ILifelineLoader
Get the category of a lifeline

Returns:
the category
See Also:
ILifelineLoader.getLifeLineCategory(org.eclipse.emf.ecore.EObject)

getLifeLineTitle

public java.lang.String getLifeLineTitle(org.eclipse.emf.ecore.EObject to,
                                         boolean long_)
Description copied from interface: ILifelineLoader
Returns the title of a lifeline

long_ - long version if true, short string otherwise
Returns:
the title of the lifeline
See Also:
ILifelineLoader.getLifeLineTitle(org.eclipse.emf.ecore.EObject, boolean)

getDistinguishedLifeLineTitle

public java.lang.String getDistinguishedLifeLineTitle(org.eclipse.emf.ecore.EObject eo,
                                                      int rank)
Returns the distinguishedtitle of a lifeline

Parameters:
eo - the EObject denoting this lifeline
rank - its rank
Returns:
the distinguished title of the lifeline

getLifeLineId

public java.lang.String getLifeLineId(org.eclipse.emf.ecore.EObject eo)
The runtimeId of agentProxy and the lifeline title

Returns:
the title of the lifeline

getFinalTitleString

public java.lang.String getFinalTitleString()
Description copied from interface: ILifelineLoader
Return the convenient title when this loader is the one

Returns:
the title
See Also:
ILifelineLoader.getFinalTitleString()

getLifelineType

public java.lang.String getLifelineType(org.eclipse.emf.ecore.EObject eObject)
Returns:
the kind of lifeline as a string for properties view
See Also:
ILifelineLoader.getLifelineType(org.eclipse.emf.ecore.EObject)

getLifelineTypeName

public java.lang.String getLifelineTypeName()
Returns:
a string carrying the lifeline type

TPTP 4.6.0 Platform Project
Public API Specification