org.almendra.janet.ade.commands
Class AbstractReduceLoadCommand

java.lang.Object
  extended by org.almendra.janet.ade.commands.AbstractReduceLoadCommand
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ICommand
Direct Known Subclasses:
InterruptibleReduceLoadCommand, ReduceLoadCommand

public abstract class AbstractReduceLoadCommand
extends java.lang.Object
implements ICommand, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.util.List evictionAssignments
           
protected  boolean isFullEviction
           
 
Fields inherited from interface org.almendra.janet.cas.scheduling.ICommand
ApplicationMaxPriority, ApplicationMinPriority, InterruptPriority, SystemPriority
 
Constructor Summary
AbstractReduceLoadCommand()
          Creates a new AbstractReduceLoadCommand object.
AbstractReduceLoadCommand(boolean isFullEviction, java.util.List fullEvictionAssignments)
          Creates a new AbstractReduceLoadCommand object.
AbstractReduceLoadCommand(java.util.List evictionAssignments)
          Creates a new AbstractReduceLoadCommand object.
 
Method Summary
 java.lang.Object clone()
          Make sure the user can rely on a command to be cloneable.
 java.util.List getEvictionAssignments()
           
 boolean isFullEviction()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.almendra.janet.cas.scheduling.ICommand
getPriority, getQualifiedName, toLogString
 

Field Detail

isFullEviction

protected boolean isFullEviction

evictionAssignments

protected java.util.List evictionAssignments
Constructor Detail

AbstractReduceLoadCommand

public AbstractReduceLoadCommand()
Creates a new AbstractReduceLoadCommand object.


AbstractReduceLoadCommand

public AbstractReduceLoadCommand(java.util.List evictionAssignments)
Creates a new AbstractReduceLoadCommand object.


AbstractReduceLoadCommand

public AbstractReduceLoadCommand(boolean isFullEviction,
                                 java.util.List fullEvictionAssignments)
Creates a new AbstractReduceLoadCommand object.

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: ICommand
Make sure the user can rely on a command to be cloneable. Needed by the system to clone commands in simulated mode which is necessary so that every agent receives a command with a pointer of its own which is the case in distributed mode anyway.

Specified by:
clone in interface ICommand
Overrides:
clone in class java.lang.Object
Returns:
Throws:
java.lang.CloneNotSupportedException

isFullEviction

public boolean isFullEviction()
Returns:
Returns the isFullEviction.

getEvictionAssignments

public java.util.List getEvictionAssignments()
Returns:
Returns the evictionAssignments.