TPTP 4.6.0 Platform Project
Public API Specification

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

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

public class ObjectInteractions
extends BaseLifelineLoader

This is the concrete class for object interaction loader


Constructor Summary
ObjectInteractions()
          Constructor
 
Method Summary
 boolean drillDownEnabled(java.lang.String value)
          Does not allow drill down
 java.lang.String getDistinguishedLifeLineTitle(org.eclipse.emf.ecore.EObject eo, int rank)
          Returns the distinguishedtitle of a lifeline
 java.lang.String getFinalTitleString()
          This is the object interactions, nothing else
 int getLifeLineCategory(org.eclipse.emf.ecore.EObject eo)
          The category of such a lifeline is: - the Classes category if and only if the name of the class of the owning object is "class"; that means that the method is static usually - the Object category in any other situation
 org.eclipse.emf.ecore.EObject getLifelineEObjectFromMethodInvocation(TRCFullMethodInvocation mi)
          The lifeline to be used for this message is the owning object
 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 eo, boolean long_)
          The name of the lifeline is the name of the class, prefixed with the id of the owning object if any
 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, getMessageTypeName, getParent, getTitleString, setViewer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectInteractions

public ObjectInteractions()
Constructor

Method Detail

getLifelineEObjectFromMethodInvocation

public org.eclipse.emf.ecore.EObject getLifelineEObjectFromMethodInvocation(TRCFullMethodInvocation mi)
The lifeline to be used for this message is the owning object

Parameters:
mi - the method invocation
Returns:
the EObject denoting the lifeline that must contain this method invocation

getLifeLineTitle

public java.lang.String getLifeLineTitle(org.eclipse.emf.ecore.EObject eo,
                                         boolean long_)
The name of the lifeline is the name of the class, prefixed with the id of the owning object if any

long_ - long version if true, short string otherwise
Returns:
the title of the lifeline

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

getLifeLineCategory

public int getLifeLineCategory(org.eclipse.emf.ecore.EObject eo)
The category of such a lifeline is: - the Classes category if and only if the name of the class of the owning object is "class"; that means that the method is static usually - the Object category in any other situation

Returns:
the category

getFinalTitleString

public java.lang.String getFinalTitleString()
This is the object interactions, nothing else

Returns:
the title

drillDownEnabled

public boolean drillDownEnabled(java.lang.String value)
Does not allow drill down

Specified by:
drillDownEnabled in interface ILifelineLoader
Overrides:
drillDownEnabled in class BaseLifelineLoader
Parameters:
value - the value 'true' or 'false' to compare this property to
Returns:
true if value is aligned to the property

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