org.rubato.rubettes.bigbang.model.operations
Class AddObjectsOperation

java.lang.Object
  extended by org.rubato.rubettes.bigbang.model.operations.AbstractOperation
      extended by org.rubato.rubettes.bigbang.model.operations.AddObjectsOperation

public class AddObjectsOperation
extends AbstractOperation


Constructor Summary
AddObjectsOperation(BigBangModel model, java.util.List<java.util.Map<DenotatorPath,java.lang.Double>> pathsWithValues, java.util.List<DenotatorPath> powersetPaths)
           
AddObjectsOperation(BigBangModel model, java.util.List<java.util.Map<DenotatorPath,java.lang.Double>> pathsWithValues, java.util.List<DenotatorPath> powersetPaths, boolean inPreviewMode)
           
AddObjectsOperation(BigBangModel model, XMLReader reader, org.w3c.dom.Element element)
           
 
Method Summary
 boolean addObjects(java.util.List<java.util.Map<DenotatorPath,java.lang.Double>> pathsWithValues, java.util.List<DenotatorPath> powersetPaths, boolean inPreviewMode)
           
 OperationPathResults execute()
           
 Form getObjectForm()
           
 java.util.List<AbstractOperation> getSplitOperations(double ratio)
           
 void toXML(XMLWriter writer)
           
 void unAddObjects(java.util.Set<java.util.Map<DenotatorPath,java.lang.Double>> pathsWithValues)
           
 
Methods inherited from class org.rubato.rubettes.bigbang.model.operations.AbstractOperation
clone, clone, getDuration, getPresentationName, isAnimatable, isSplittable, modify, setDuration, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddObjectsOperation

public AddObjectsOperation(BigBangModel model,
                           java.util.List<java.util.Map<DenotatorPath,java.lang.Double>> pathsWithValues,
                           java.util.List<DenotatorPath> powersetPaths)

AddObjectsOperation

public AddObjectsOperation(BigBangModel model,
                           java.util.List<java.util.Map<DenotatorPath,java.lang.Double>> pathsWithValues,
                           java.util.List<DenotatorPath> powersetPaths,
                           boolean inPreviewMode)

AddObjectsOperation

public AddObjectsOperation(BigBangModel model,
                           XMLReader reader,
                           org.w3c.dom.Element element)
Method Detail

getSplitOperations

public java.util.List<AbstractOperation> getSplitOperations(double ratio)
Overrides:
getSplitOperations in class AbstractOperation
Parameters:
ratio - a number between 0 and 1
Returns:
a list with two operations that represent this operation split at the given ratio. null if not splittable

getObjectForm

public Form getObjectForm()

addObjects

public boolean addObjects(java.util.List<java.util.Map<DenotatorPath,java.lang.Double>> pathsWithValues,
                          java.util.List<DenotatorPath> powersetPaths,
                          boolean inPreviewMode)

unAddObjects

public void unAddObjects(java.util.Set<java.util.Map<DenotatorPath,java.lang.Double>> pathsWithValues)

execute

public OperationPathResults execute()
Specified by:
execute in class AbstractOperation

toXML

public void toXML(XMLWriter writer)
Overrides:
toXML in class AbstractOperation