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

java.lang.Object
  extended by org.rubato.rubettes.bigbang.model.operations.AbstractOperation
Direct Known Subclasses:
AbstractObjectBasedOperation, AbstractTransformation, AddObjectsOperation, AddWallpaperDimensionOperation, AlterationOperation, EndWallpaperOperation, InputCompositionOperation, ShapingOperation

public abstract class AbstractOperation
extends java.lang.Object


Constructor Summary
AbstractOperation(BigBangModel model)
           
AbstractOperation(BigBangModel model, XMLReader reader, org.w3c.dom.Element element)
           
 
Method Summary
 AbstractOperation clone()
           
 AbstractOperation clone(BigBangModel model)
           
abstract  OperationPathResults execute()
           
 double getDuration()
           
 java.lang.String getPresentationName()
           
 java.util.List<AbstractOperation> getSplitOperations(double ratio)
           
 boolean isAnimatable()
           
 boolean isSplittable()
           
 void modify(double ratio)
           
 void setDuration(double duration)
           
 java.lang.String toString()
           
 void toXML(XMLWriter writer)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractOperation

public AbstractOperation(BigBangModel model)

AbstractOperation

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

modify

public void modify(double ratio)

getPresentationName

public java.lang.String getPresentationName()

execute

public abstract OperationPathResults execute()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isAnimatable

public boolean isAnimatable()

isSplittable

public boolean isSplittable()

getSplitOperations

public java.util.List<AbstractOperation> getSplitOperations(double ratio)
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

setDuration

public void setDuration(double duration)

getDuration

public double getDuration()

clone

public AbstractOperation clone()
Overrides:
clone in class java.lang.Object

clone

public AbstractOperation clone(BigBangModel model)

toXML

public void toXML(XMLWriter writer)