de.uka.ipd.sdq.probfunction.impl
Class SampleImpl<T>

java.lang.Object
  extended by EObjectImpl
      extended by de.uka.ipd.sdq.probfunction.impl.SampleImpl<T>
All Implemented Interfaces:
Sample<T>

public class SampleImpl<T>
extends EObjectImpl
implements Sample<T>

An implementation of the model object 'Sample'.

The following features are implemented:


Field Summary
static String copyright
           
protected  double probability
          The cached value of the 'Probability' attribute.
protected static double PROBABILITY_EDEFAULT
          The default value of the 'Probability' attribute.
protected  T value
          The cached value of the 'Value' reference.
 
Constructor Summary
protected SampleImpl()
           
 
Method Summary
 T basicGetValue()
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 double getProbability()
           
 T getValue()
           
 void setProbability(double newProbability)
           
 void setValue(T newValue)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.uka.ipd.sdq.probfunction.Sample
setValue
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values

value

protected T value
The cached value of the 'Value' reference.

See Also:
getValue()

PROBABILITY_EDEFAULT

protected static final double PROBABILITY_EDEFAULT
The default value of the 'Probability' attribute.

See Also:
getProbability(), Constant Field Values

probability

protected double probability
The cached value of the 'Probability' attribute.

See Also:
getProbability()
Constructor Detail

SampleImpl

protected SampleImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()


getValue

public T getValue()

Specified by:
getValue in interface Sample<T>
Returns:
the value of the 'Value' reference.
See Also:
Sample.setValue(Object), ProbfunctionPackage.getSample_Value()

basicGetValue

public T basicGetValue()


setValue

public void setValue(T newValue)


getProbability

public double getProbability()

Specified by:
getProbability in interface Sample<T>
Returns:
the value of the 'Probability' attribute.
See Also:
Sample.setProbability(double), ProbfunctionPackage.getSample_Probability()

setProbability

public void setProbability(double newProbability)

Specified by:
setProbability in interface Sample<T>
Parameters:
newProbability - the new value of the 'Probability' attribute.
See Also:
Sample.getProbability()

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)


eSet

public void eSet(int featureID,
                 Object newValue)


eUnset

public void eUnset(int featureID)


eIsSet

public boolean eIsSet(int featureID)


toString

public String toString()