scheduler.configuration.impl
Class StaticPriorityBoostImpl

java.lang.Object
  extended by EObjectImpl
      extended by scheduler.configuration.impl.StaticPriorityBoostImpl
All Implemented Interfaces:
StaticPriorityBoost

public class StaticPriorityBoostImpl
extends EObjectImpl
implements StaticPriorityBoost

An implementation of the model object 'Static Priority Boost'.

The following features are implemented:


Field Summary
protected  int bonus
          The cached value of the 'Bonus' attribute.
protected static int BONUS_EDEFAULT
          The default value of the 'Bonus' attribute.
protected  PriorityDegradation degradation
          The cached value of the 'Degradation' attribute.
protected static PriorityDegradation DEGRADATION_EDEFAULT
          The default value of the 'Degradation' attribute.
protected static boolean RESET_TIMESLICE_EDEFAULT
          The default value of the 'Reset Timeslice' attribute.
protected  boolean resetTimeslice
          The cached value of the 'Reset Timeslice' attribute.
protected  TimeValue timePenalty
          The cached value of the 'Time Penalty' containment reference.
 
Constructor Summary
protected StaticPriorityBoostImpl()
           
 
Method Summary
 NotificationChain basicSetTimePenalty(TimeValue newTimePenalty, NotificationChain msgs)
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 int getBonus()
           
 PriorityDegradation getDegradation()
           
 TimeValue getTimePenalty()
           
 boolean isResetTimeslice()
           
 void setBonus(int newBonus)
           
 void setDegradation(PriorityDegradation newDegradation)
           
 void setResetTimeslice(boolean newResetTimeslice)
           
 void setTimePenalty(TimeValue newTimePenalty)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESET_TIMESLICE_EDEFAULT

protected static final boolean RESET_TIMESLICE_EDEFAULT
The default value of the 'Reset Timeslice' attribute.

See Also:
isResetTimeslice(), Constant Field Values

resetTimeslice

protected boolean resetTimeslice
The cached value of the 'Reset Timeslice' attribute.

See Also:
isResetTimeslice()

BONUS_EDEFAULT

protected static final int BONUS_EDEFAULT
The default value of the 'Bonus' attribute.

See Also:
getBonus(), Constant Field Values

bonus

protected int bonus
The cached value of the 'Bonus' attribute.

See Also:
getBonus()

DEGRADATION_EDEFAULT

protected static final PriorityDegradation DEGRADATION_EDEFAULT
The default value of the 'Degradation' attribute.

See Also:
getDegradation()

degradation

protected PriorityDegradation degradation
The cached value of the 'Degradation' attribute.

See Also:
getDegradation()

timePenalty

protected TimeValue timePenalty
The cached value of the 'Time Penalty' containment reference.

See Also:
getTimePenalty()
Constructor Detail

StaticPriorityBoostImpl

protected StaticPriorityBoostImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()


isResetTimeslice

public boolean isResetTimeslice()

Specified by:
isResetTimeslice in interface StaticPriorityBoost
Returns:
the value of the 'Reset Timeslice' attribute.
See Also:
StaticPriorityBoost.setResetTimeslice(boolean), ConfigurationPackage.getStaticPriorityBoost_ResetTimeslice()

setResetTimeslice

public void setResetTimeslice(boolean newResetTimeslice)

Specified by:
setResetTimeslice in interface StaticPriorityBoost
Parameters:
newResetTimeslice - the new value of the 'Reset Timeslice' attribute.
See Also:
StaticPriorityBoost.isResetTimeslice()

getBonus

public int getBonus()

Specified by:
getBonus in interface StaticPriorityBoost
Returns:
the value of the 'Bonus' attribute.
See Also:
StaticPriorityBoost.setBonus(int), ConfigurationPackage.getStaticPriorityBoost_Bonus()

setBonus

public void setBonus(int newBonus)

Specified by:
setBonus in interface StaticPriorityBoost
Parameters:
newBonus - the new value of the 'Bonus' attribute.
See Also:
StaticPriorityBoost.getBonus()

getDegradation

public PriorityDegradation getDegradation()

Specified by:
getDegradation in interface StaticPriorityBoost
Returns:
the value of the 'Degradation' attribute.
See Also:
PriorityDegradation, StaticPriorityBoost.setDegradation(PriorityDegradation), ConfigurationPackage.getStaticPriorityBoost_Degradation()

setDegradation

public void setDegradation(PriorityDegradation newDegradation)

Specified by:
setDegradation in interface StaticPriorityBoost
Parameters:
newDegradation - the new value of the 'Degradation' attribute.
See Also:
PriorityDegradation, StaticPriorityBoost.getDegradation()

getTimePenalty

public TimeValue getTimePenalty()

Specified by:
getTimePenalty in interface StaticPriorityBoost
Returns:
the value of the 'Time Penalty' containment reference.
See Also:
StaticPriorityBoost.setTimePenalty(TimeValue), ConfigurationPackage.getStaticPriorityBoost_TimePenalty()

basicSetTimePenalty

public NotificationChain basicSetTimePenalty(TimeValue newTimePenalty,
                                             NotificationChain msgs)


setTimePenalty

public void setTimePenalty(TimeValue newTimePenalty)

Specified by:
setTimePenalty in interface StaticPriorityBoost
Parameters:
newTimePenalty - the new value of the 'Time Penalty' containment reference.
See Also:
StaticPriorityBoost.getTimePenalty()

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)


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()