TPTP 4.4.0 Platform Project
Public API Specification

org.eclipse.hyades.models.trace.impl
Class TRCMethodImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.hyades.models.trace.impl.TRCLanguageElementImpl
                  extended byorg.eclipse.hyades.models.trace.impl.TRCMethodImpl
All Implemented Interfaces:
org.eclipse.emf.ecore.EObject, IDeltaManager, org.eclipse.emf.ecore.InternalEObject, org.eclipse.emf.common.notify.Notifier, TRCLanguageElement, TRCMethod
Direct Known Subclasses:
TRCMethodWithLLDataImpl

public class TRCMethodImpl
extends TRCLanguageElementImpl
implements TRCMethod

An implementation of the model object 'TRC Method'.

The following features are implemented:

Generated

Nested Class Summary
static class TRCMethodImpl.TRCMethodSnapshot
           
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected static double BASE_TIME_EDEFAULT
          The default value of the 'Base Time' attribute
protected  double baseTime
          The cached value of the 'Base Time' attribute
protected  int calls
          The cached value of the 'Calls' attribute
protected static int CALLS_EDEFAULT
          The default value of the 'Calls' attribute
protected static double CUMULATIVE_TIME_EDEFAULT
          The default value of the 'Cumulative Time' attribute
protected  double cumulativeTime
          The cached value of the 'Cumulative Time' attribute
protected  int id
          The cached value of the 'Id' attribute
protected static int ID_EDEFAULT
          The default value of the 'Id' attribute
protected  org.eclipse.emf.common.util.EList invocations
          The cached value of the 'Invocations' reference list
protected static int LINE_COUNT_EDEFAULT
          The default value of the 'Line Count' attribute
protected static int LINE_NO_EDEFAULT
          The default value of the 'Line No' attribute
protected  int lineCount
          The cached value of the 'Line Count' attribute
protected  int lineNo
          The cached value of the 'Line No' attribute
protected  int modifier
          The cached value of the 'Modifier' attribute
protected static int MODIFIER_EDEFAULT
          The default value of the 'Modifier' attribute
protected  java.lang.String name
          The cached value of the 'Name' attribute
protected static java.lang.String NAME_EDEFAULT
          The default value of the 'Name' attribute
protected  TRCSignatureNotation notation
          The cached value of the 'Notation' attribute
protected static TRCSignatureNotation NOTATION_EDEFAULT
          The default value of the 'Notation' attribute
protected  java.lang.String signature
          The cached value of the 'Signature' attribute
protected static java.lang.String SIGNATURE_EDEFAULT
          The default value of the 'Signature' attribute
protected static double TOTAL_CPU_TIME_EDEFAULT
          The default value of the 'Total Cpu Time' attribute
protected  double totalCpuTime
          The cached value of the 'Total Cpu Time' attribute
 
Fields inherited from class org.eclipse.hyades.models.trace.impl.TRCLanguageElementImpl
annotations, sourceInfo
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected TRCMethodImpl()
           
 
Method Summary
 int computeDelta(IDelta delta)
          returns: -1 no snapshot exists 1 snapshot exists
 int computeDelta(IDelta delta, int featureID)
           
 org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 double getBaseTime()
           
 int getCalls()
           
 double getCumulativeTime()
           
 TRCClass getDefiningClass()
           
 int getId()
           
 org.eclipse.emf.common.util.EList getInvocations()
           
 int getLineCount()
           
 int getLineNo()
           
 int getModifier()
           
 java.lang.String getName()
           
 TRCSignatureNotation getNotation()
           
 java.lang.String getSignature()
           
 double getTotalCpuTime()
           
 void removeSnapshot()
          returns the current snapshot
 ISnapshot retrieveSnapshot()
          returns the current snapshot
 void setBaseTime(double newBaseTime)
           
 void setCalls(int newCalls)
           
 void setCumulativeTime(double newCumulativeTime)
           
 void setDefiningClass(TRCClass newDefiningClass)
           
 void setId(int newId)
           
 void setLineCount(int newLineCount)
           
 void setLineNo(int newLineNo)
           
 void setModifier(int newModifier)
           
 void setName(java.lang.String newName)
           
 void setNotation(TRCSignatureNotation newNotation)
           
 void setSignature(java.lang.String newSignature)
           
 void setTotalCpuTime(double newTotalCpuTime)
           
 void takeSnapshot()
          take a snapshot, replaces the previous one
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.hyades.models.trace.impl.TRCLanguageElementImpl
basicGetSourceInfo, getAnnotations, getSourceInfo, setSourceInfo
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.hyades.models.trace.TRCLanguageElement
getAnnotations, getSourceInfo, setSourceInfo
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

ID_EDEFAULT

protected static final int ID_EDEFAULT
The default value of the 'Id' attribute.

See Also:
getId(), Constant Field Values
Generated
[EMF] Ordered

id

protected int id
The cached value of the 'Id' attribute.

See Also:
getId()
Generated
[EMF] Ordered

NAME_EDEFAULT

protected static final java.lang.String NAME_EDEFAULT
The default value of the 'Name' attribute.

See Also:
getName()
Generated
[EMF] Ordered

name

protected java.lang.String name
The cached value of the 'Name' attribute.

See Also:
getName()
Generated
[EMF] Ordered

SIGNATURE_EDEFAULT

protected static final java.lang.String SIGNATURE_EDEFAULT
The default value of the 'Signature' attribute.

See Also:
getSignature()
Generated
[EMF] Ordered

signature

protected java.lang.String signature
The cached value of the 'Signature' attribute.

See Also:
getSignature()
Generated
[EMF] Ordered

MODIFIER_EDEFAULT

protected static final int MODIFIER_EDEFAULT
The default value of the 'Modifier' attribute.

See Also:
getModifier(), Constant Field Values
Generated
[EMF] Ordered

modifier

protected int modifier
The cached value of the 'Modifier' attribute.

See Also:
getModifier()
Generated
[EMF] Ordered

NOTATION_EDEFAULT

protected static final TRCSignatureNotation NOTATION_EDEFAULT
The default value of the 'Notation' attribute.

See Also:
getNotation()
Generated
[EMF] Ordered

notation

protected TRCSignatureNotation notation
The cached value of the 'Notation' attribute.

See Also:
getNotation()
Generated
[EMF] Ordered

LINE_NO_EDEFAULT

protected static final int LINE_NO_EDEFAULT
The default value of the 'Line No' attribute.

See Also:
getLineNo(), Constant Field Values
Generated
[EMF] Ordered

lineNo

protected int lineNo
The cached value of the 'Line No' attribute.

See Also:
getLineNo()
Generated
[EMF] Ordered

LINE_COUNT_EDEFAULT

protected static final int LINE_COUNT_EDEFAULT
The default value of the 'Line Count' attribute.

See Also:
getLineCount(), Constant Field Values
Generated
[EMF] Ordered

lineCount

protected int lineCount
The cached value of the 'Line Count' attribute.

See Also:
getLineCount()
Generated
[EMF] Ordered

BASE_TIME_EDEFAULT

protected static final double BASE_TIME_EDEFAULT
The default value of the 'Base Time' attribute.

See Also:
getBaseTime(), Constant Field Values
Generated
[EMF] Ordered

baseTime

protected double baseTime
The cached value of the 'Base Time' attribute.

See Also:
getBaseTime()
Generated
[EMF] Ordered

CUMULATIVE_TIME_EDEFAULT

protected static final double CUMULATIVE_TIME_EDEFAULT
The default value of the 'Cumulative Time' attribute.

See Also:
getCumulativeTime(), Constant Field Values
Generated
[EMF] Ordered

cumulativeTime

protected double cumulativeTime
The cached value of the 'Cumulative Time' attribute.

See Also:
getCumulativeTime()
Generated
[EMF] Ordered

CALLS_EDEFAULT

protected static final int CALLS_EDEFAULT
The default value of the 'Calls' attribute.

See Also:
getCalls(), Constant Field Values
Generated
[EMF] Ordered

calls

protected int calls
The cached value of the 'Calls' attribute.

See Also:
getCalls()
Generated
[EMF] Ordered

TOTAL_CPU_TIME_EDEFAULT

protected static final double TOTAL_CPU_TIME_EDEFAULT
The default value of the 'Total Cpu Time' attribute.

See Also:
getTotalCpuTime(), Constant Field Values
Generated
[EMF] Ordered

totalCpuTime

protected double totalCpuTime
The cached value of the 'Total Cpu Time' attribute.

See Also:
getTotalCpuTime()
Generated
[EMF] Ordered

invocations

protected org.eclipse.emf.common.util.EList invocations
The cached value of the 'Invocations' reference list.

See Also:
getInvocations()
Generated
[EMF] Ordered
Constructor Detail

TRCMethodImpl

protected TRCMethodImpl()

Generated
Method Detail

computeDelta

public int computeDelta(IDelta delta)
Description copied from interface: IDeltaManager
returns: -1 no snapshot exists 1 snapshot exists

Specified by:
computeDelta in interface IDeltaManager

computeDelta

public int computeDelta(IDelta delta,
                        int featureID)
Specified by:
computeDelta in interface IDeltaManager

removeSnapshot

public void removeSnapshot()
Description copied from interface: IDeltaManager
returns the current snapshot

Specified by:
removeSnapshot in interface IDeltaManager

retrieveSnapshot

public ISnapshot retrieveSnapshot()
Description copied from interface: IDeltaManager
returns the current snapshot

Specified by:
retrieveSnapshot in interface IDeltaManager

takeSnapshot

public void takeSnapshot()
Description copied from interface: IDeltaManager
take a snapshot, replaces the previous one

Specified by:
takeSnapshot in interface IDeltaManager

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class TRCLanguageElementImpl
Generated

getId

public int getId()

Specified by:
getId in interface TRCMethod
Returns:
the value of the 'Id' attribute.
See Also:
TRCMethod.setId(int), TracePackage.getTRCMethod_Id()
Generated

setId

public void setId(int newId)

Specified by:
setId in interface TRCMethod
Parameters:
newId - the new value of the 'Id' attribute.
See Also:
TRCMethod.getId()
Generated

getName

public java.lang.String getName()

Specified by:
getName in interface TRCMethod
Returns:
the value of the 'Name' attribute.
See Also:
TRCMethod.setName(String), TracePackage.getTRCMethod_Name()
Generated

setName

public void setName(java.lang.String newName)

Specified by:
setName in interface TRCMethod
Parameters:
newName - the new value of the 'Name' attribute.
See Also:
TRCMethod.getName()
Generated

getSignature

public java.lang.String getSignature()

Specified by:
getSignature in interface TRCMethod
Returns:
the value of the 'Signature' attribute.
See Also:
TRCMethod.setSignature(String), TracePackage.getTRCMethod_Signature()
Generated

setSignature

public void setSignature(java.lang.String newSignature)

Specified by:
setSignature in interface TRCMethod
Parameters:
newSignature - the new value of the 'Signature' attribute.
See Also:
TRCMethod.getSignature()
Generated

getModifier

public int getModifier()

Specified by:
getModifier in interface TRCMethod
Returns:
the value of the 'Modifier' attribute.
See Also:
TRCMethod.setModifier(int), TracePackage.getTRCMethod_Modifier()
Generated

setModifier

public void setModifier(int newModifier)

Specified by:
setModifier in interface TRCMethod
Parameters:
newModifier - the new value of the 'Modifier' attribute.
See Also:
TRCMethod.getModifier()
Generated

getNotation

public TRCSignatureNotation getNotation()

Specified by:
getNotation in interface TRCMethod
Returns:
the value of the 'Notation' attribute.
See Also:
TRCSignatureNotation, TRCMethod.setNotation(TRCSignatureNotation), TracePackage.getTRCMethod_Notation()
Generated

setNotation

public void setNotation(TRCSignatureNotation newNotation)

Specified by:
setNotation in interface TRCMethod
Parameters:
newNotation - the new value of the 'Notation' attribute.
See Also:
TRCSignatureNotation, TRCMethod.getNotation()
Generated

getLineNo

public int getLineNo()

Specified by:
getLineNo in interface TRCMethod
Returns:
the value of the 'Line No' attribute.
See Also:
TRCMethod.setLineNo(int), TracePackage.getTRCMethod_LineNo()
Generated

setLineNo

public void setLineNo(int newLineNo)

Specified by:
setLineNo in interface TRCMethod
Parameters:
newLineNo - the new value of the 'Line No' attribute.
See Also:
TRCMethod.getLineNo()
Generated

getLineCount

public int getLineCount()

Specified by:
getLineCount in interface TRCMethod
Returns:
the value of the 'Line Count' attribute.
See Also:
TRCMethod.setLineCount(int), TracePackage.getTRCMethod_LineCount()
Generated

setLineCount

public void setLineCount(int newLineCount)

Specified by:
setLineCount in interface TRCMethod
Parameters:
newLineCount - the new value of the 'Line Count' attribute.
See Also:
TRCMethod.getLineCount()
Generated

getBaseTime

public double getBaseTime()

Specified by:
getBaseTime in interface TRCMethod
Returns:
the value of the 'Base Time' attribute.
See Also:
TRCMethod.setBaseTime(double), TracePackage.getTRCMethod_BaseTime()
Generated

setBaseTime

public void setBaseTime(double newBaseTime)

Specified by:
setBaseTime in interface TRCMethod
Parameters:
newBaseTime - the new value of the 'Base Time' attribute.
See Also:
TRCMethod.getBaseTime()
Generated

getCumulativeTime

public double getCumulativeTime()

Specified by:
getCumulativeTime in interface TRCMethod
Returns:
the value of the 'Cumulative Time' attribute.
See Also:
TRCMethod.setCumulativeTime(double), TracePackage.getTRCMethod_CumulativeTime()
Generated

setCumulativeTime

public void setCumulativeTime(double newCumulativeTime)

Specified by:
setCumulativeTime in interface TRCMethod
Parameters:
newCumulativeTime - the new value of the 'Cumulative Time' attribute.
See Also:
TRCMethod.getCumulativeTime()
Generated

getCalls

public int getCalls()

Specified by:
getCalls in interface TRCMethod
Returns:
the value of the 'Calls' attribute.
See Also:
TRCMethod.setCalls(int), TracePackage.getTRCMethod_Calls()
Generated

setCalls

public void setCalls(int newCalls)

Specified by:
setCalls in interface TRCMethod
Parameters:
newCalls - the new value of the 'Calls' attribute.
See Also:
TRCMethod.getCalls()
Generated

getTotalCpuTime

public double getTotalCpuTime()

Specified by:
getTotalCpuTime in interface TRCMethod
Returns:
the value of the 'Total Cpu Time' attribute.
See Also:
TRCMethod.setTotalCpuTime(double), TracePackage.getTRCMethod_TotalCpuTime()
Generated

setTotalCpuTime

public void setTotalCpuTime(double newTotalCpuTime)

Specified by:
setTotalCpuTime in interface TRCMethod
Parameters:
newTotalCpuTime - the new value of the 'Total Cpu Time' attribute.
See Also:
TRCMethod.getTotalCpuTime()
Generated

getDefiningClass

public TRCClass getDefiningClass()

Specified by:
getDefiningClass in interface TRCMethod
Returns:
the value of the 'Defining Class' container reference.
See Also:
TRCMethod.setDefiningClass(TRCClass), TracePackage.getTRCMethod_DefiningClass(), TRCClass.getMethods()
Generated

setDefiningClass

public void setDefiningClass(TRCClass newDefiningClass)

Specified by:
setDefiningClass in interface TRCMethod
Parameters:
newDefiningClass - the new value of the 'Defining Class' container reference.
See Also:
TRCMethod.getDefiningClass()
Generated

getInvocations

public org.eclipse.emf.common.util.EList getInvocations()

Specified by:
getInvocations in interface TRCMethod
Returns:
the value of the 'Invocations' reference list.
See Also:
TracePackage.getTRCMethod_Invocations(), TRCMethodInvocation.getMethod()
Generated

eInverseAdd

public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                   int featureID,
                                                                   org.eclipse.emf.common.notify.NotificationChain msgs)

Generated

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseRemove in class TRCLanguageElementImpl
Generated

eBasicRemoveFromContainerFeature

public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)

Generated

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class TRCLanguageElementImpl
Generated

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class TRCLanguageElementImpl
Generated

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class TRCLanguageElementImpl
Generated

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class TRCLanguageElementImpl
Generated

toString

public java.lang.String toString()

Generated

TPTP 4.4.0 Platform Project
Public API Specification