scheduler.configuration.impl
Class LoadBalancingImpl

java.lang.Object
  extended by EObjectImpl
      extended by scheduler.configuration.impl.LoadBalancingImpl
All Implemented Interfaces:
LoadBalancing

public class LoadBalancingImpl
extends EObjectImpl
implements LoadBalancing

An implementation of the model object 'Load Balancing'.

The following features are implemented:


Field Summary
protected static LoadBalancingType BALANCING_TYPE_EDEFAULT
          The default value of the 'Balancing Type' attribute.
protected  TimeValue balancingInterval
          The cached value of the 'Balancing Interval' containment reference.
protected  LoadBalancingType balancingType
          The cached value of the 'Balancing Type' attribute.
protected  InstanceToBalance instances
          The cached value of the 'Instances' attribute.
protected static InstanceToBalance INSTANCES_EDEFAULT
          The default value of the 'Instances' attribute.
protected static int MAX_ITERATIONS_EDEFAULT
          The default value of the 'Max Iterations' attribute.
protected  int maxIterations
          The cached value of the 'Max Iterations' attribute.
protected static PreferredPriority PREFERRED_PRIORITY_EDEFAULT
          The default value of the 'Preferred Priority' attribute.
protected static PreferredWaitingTime PREFERRED_WAITING_TIME_EDEFAULT
          The default value of the 'Preferred Waiting Time' attribute.
protected  PreferredPriority preferredPriority
          The cached value of the 'Preferred Priority' attribute.
protected  PreferredWaitingTime preferredWaitingTime
          The cached value of the 'Preferred Waiting Time' attribute.
protected  double threshold
          The cached value of the 'Threshold' attribute.
protected static double THRESHOLD_EDEFAULT
          The default value of the 'Threshold' attribute.
 
Constructor Summary
protected LoadBalancingImpl()
           
 
Method Summary
 NotificationChain basicSetBalancingInterval(TimeValue newBalancingInterval, 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)
           
 TimeValue getBalancingInterval()
           
 LoadBalancingType getBalancingType()
           
 InstanceToBalance getInstances()
           
 int getMaxIterations()
           
 PreferredPriority getPreferredPriority()
           
 PreferredWaitingTime getPreferredWaitingTime()
           
 double getThreshold()
           
 void setBalancingInterval(TimeValue newBalancingInterval)
           
 void setBalancingType(LoadBalancingType newBalancingType)
           
 void setInstances(InstanceToBalance newInstances)
           
 void setMaxIterations(int newMaxIterations)
           
 void setPreferredPriority(PreferredPriority newPreferredPriority)
           
 void setPreferredWaitingTime(PreferredWaitingTime newPreferredWaitingTime)
           
 void setThreshold(double newThreshold)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BALANCING_TYPE_EDEFAULT

protected static final LoadBalancingType BALANCING_TYPE_EDEFAULT
The default value of the 'Balancing Type' attribute.

See Also:
getBalancingType()

balancingType

protected LoadBalancingType balancingType
The cached value of the 'Balancing Type' attribute.

See Also:
getBalancingType()

PREFERRED_WAITING_TIME_EDEFAULT

protected static final PreferredWaitingTime PREFERRED_WAITING_TIME_EDEFAULT
The default value of the 'Preferred Waiting Time' attribute.

See Also:
getPreferredWaitingTime()

preferredWaitingTime

protected PreferredWaitingTime preferredWaitingTime
The cached value of the 'Preferred Waiting Time' attribute.

See Also:
getPreferredWaitingTime()

PREFERRED_PRIORITY_EDEFAULT

protected static final PreferredPriority PREFERRED_PRIORITY_EDEFAULT
The default value of the 'Preferred Priority' attribute.

See Also:
getPreferredPriority()

preferredPriority

protected PreferredPriority preferredPriority
The cached value of the 'Preferred Priority' attribute.

See Also:
getPreferredPriority()

INSTANCES_EDEFAULT

protected static final InstanceToBalance INSTANCES_EDEFAULT
The default value of the 'Instances' attribute.

See Also:
getInstances()

instances

protected InstanceToBalance instances
The cached value of the 'Instances' attribute.

See Also:
getInstances()

THRESHOLD_EDEFAULT

protected static final double THRESHOLD_EDEFAULT
The default value of the 'Threshold' attribute.

See Also:
getThreshold(), Constant Field Values

threshold

protected double threshold
The cached value of the 'Threshold' attribute.

See Also:
getThreshold()

MAX_ITERATIONS_EDEFAULT

protected static final int MAX_ITERATIONS_EDEFAULT
The default value of the 'Max Iterations' attribute.

See Also:
getMaxIterations(), Constant Field Values

maxIterations

protected int maxIterations
The cached value of the 'Max Iterations' attribute.

See Also:
getMaxIterations()

balancingInterval

protected TimeValue balancingInterval
The cached value of the 'Balancing Interval' containment reference.

See Also:
getBalancingInterval()
Constructor Detail

LoadBalancingImpl

protected LoadBalancingImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()


getBalancingType

public LoadBalancingType getBalancingType()

Specified by:
getBalancingType in interface LoadBalancing
Returns:
the value of the 'Balancing Type' attribute.
See Also:
LoadBalancingType, LoadBalancing.setBalancingType(LoadBalancingType), ConfigurationPackage.getLoadBalancing_BalancingType()

setBalancingType

public void setBalancingType(LoadBalancingType newBalancingType)

Specified by:
setBalancingType in interface LoadBalancing
Parameters:
newBalancingType - the new value of the 'Balancing Type' attribute.
See Also:
LoadBalancingType, LoadBalancing.getBalancingType()

getPreferredWaitingTime

public PreferredWaitingTime getPreferredWaitingTime()

Specified by:
getPreferredWaitingTime in interface LoadBalancing
Returns:
the value of the 'Preferred Waiting Time' attribute.
See Also:
PreferredWaitingTime, LoadBalancing.setPreferredWaitingTime(PreferredWaitingTime), ConfigurationPackage.getLoadBalancing_PreferredWaitingTime()

setPreferredWaitingTime

public void setPreferredWaitingTime(PreferredWaitingTime newPreferredWaitingTime)

Specified by:
setPreferredWaitingTime in interface LoadBalancing
Parameters:
newPreferredWaitingTime - the new value of the 'Preferred Waiting Time' attribute.
See Also:
PreferredWaitingTime, LoadBalancing.getPreferredWaitingTime()

getPreferredPriority

public PreferredPriority getPreferredPriority()

Specified by:
getPreferredPriority in interface LoadBalancing
Returns:
the value of the 'Preferred Priority' attribute.
See Also:
PreferredPriority, LoadBalancing.setPreferredPriority(PreferredPriority), ConfigurationPackage.getLoadBalancing_PreferredPriority()

setPreferredPriority

public void setPreferredPriority(PreferredPriority newPreferredPriority)

Specified by:
setPreferredPriority in interface LoadBalancing
Parameters:
newPreferredPriority - the new value of the 'Preferred Priority' attribute.
See Also:
PreferredPriority, LoadBalancing.getPreferredPriority()

getInstances

public InstanceToBalance getInstances()

Specified by:
getInstances in interface LoadBalancing
Returns:
the value of the 'Instances' attribute.
See Also:
InstanceToBalance, LoadBalancing.setInstances(InstanceToBalance), ConfigurationPackage.getLoadBalancing_Instances()

setInstances

public void setInstances(InstanceToBalance newInstances)

Specified by:
setInstances in interface LoadBalancing
Parameters:
newInstances - the new value of the 'Instances' attribute.
See Also:
InstanceToBalance, LoadBalancing.getInstances()

getThreshold

public double getThreshold()

Specified by:
getThreshold in interface LoadBalancing
Returns:
the value of the 'Threshold' attribute.
See Also:
LoadBalancing.setThreshold(double), ConfigurationPackage.getLoadBalancing_Threshold()

setThreshold

public void setThreshold(double newThreshold)

Specified by:
setThreshold in interface LoadBalancing
Parameters:
newThreshold - the new value of the 'Threshold' attribute.
See Also:
LoadBalancing.getThreshold()

getMaxIterations

public int getMaxIterations()

Specified by:
getMaxIterations in interface LoadBalancing
Returns:
the value of the 'Max Iterations' attribute.
See Also:
LoadBalancing.setMaxIterations(int), ConfigurationPackage.getLoadBalancing_MaxIterations()

setMaxIterations

public void setMaxIterations(int newMaxIterations)

Specified by:
setMaxIterations in interface LoadBalancing
Parameters:
newMaxIterations - the new value of the 'Max Iterations' attribute.
See Also:
LoadBalancing.getMaxIterations()

getBalancingInterval

public TimeValue getBalancingInterval()

Specified by:
getBalancingInterval in interface LoadBalancing
Returns:
the value of the 'Balancing Interval' containment reference.
See Also:
LoadBalancing.setBalancingInterval(TimeValue), ConfigurationPackage.getLoadBalancing_BalancingInterval()

basicSetBalancingInterval

public NotificationChain basicSetBalancingInterval(TimeValue newBalancingInterval,
                                                   NotificationChain msgs)


setBalancingInterval

public void setBalancingInterval(TimeValue newBalancingInterval)

Specified by:
setBalancingInterval in interface LoadBalancing
Parameters:
newBalancingInterval - the new value of the 'Balancing Interval' containment reference.
See Also:
LoadBalancing.getBalancingInterval()

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