org.rubato.rubettes.bigbang
Class BigBangRubette

java.lang.Object
  extended by org.rubato.base.AbstractRubette
      extended by org.rubato.rubettes.bigbang.BigBangRubette
All Implemented Interfaces:
Rubette

public class BigBangRubette
extends AbstractRubette


Field Summary
static boolean IS_MULTITOUCH
           
static java.lang.String STANDARD_FORM_NAME
           
 
Constructor Summary
BigBangRubette()
          Creates a basic BigBangRubette.
 
Method Summary
 Rubette duplicate()
          Creates a duplicate from this rubette instance.
 Rubette fromXML(XMLReader reader, org.w3c.dom.Element element)
          Creates a rubette from an XML description starting with element.
 java.lang.String getGroup()
          Returns the fact that BigBangRubette belongs to the core rubettes
 java.lang.String getName()
          Returns the name of the rubette.
 javax.swing.JComponent getView()
          Returns the Swing component for the view.
 boolean hasView()
          Returns true iff this Rubette has a view.
 void run(RunInfo runInfo)
          Runs the Rubette.
 void toXML(XMLWriter writer)
          Writes an XML description of this rubette.
 
Methods inherited from class org.rubato.base.AbstractRubette
addError, addError, applyProperties, clearErrors, getErrors, getIcon, getInCount, getInfo, getInput, getInTip, getLongDescription, getModel, getOutCount, getOutput, getOutTip, getProperties, getShortDescription, hasErrors, hasInfo, hasProperties, init, newInstance, revertProperties, setInCount, setModel, setOutCount, setOutput, updateView
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_MULTITOUCH

public static final boolean IS_MULTITOUCH
See Also:
Constant Field Values

STANDARD_FORM_NAME

public static final java.lang.String STANDARD_FORM_NAME
See Also:
Constant Field Values
Constructor Detail

BigBangRubette

public BigBangRubette()
Creates a basic BigBangRubette.

Method Detail

duplicate

public Rubette duplicate()
Description copied from class: AbstractRubette
Creates a duplicate from this rubette instance. All properties are copied if possible. This must be correctly implemented in order that many functions work as expected.

Specified by:
duplicate in interface Rubette
Specified by:
duplicate in class AbstractRubette

getName

public java.lang.String getName()
Description copied from class: AbstractRubette
Returns the name of the rubette.

Specified by:
getName in interface Rubette
Specified by:
getName in class AbstractRubette

getGroup

public java.lang.String getGroup()
Returns the fact that BigBangRubette belongs to the core rubettes

Specified by:
getGroup in interface Rubette
Overrides:
getGroup in class AbstractRubette

run

public void run(RunInfo runInfo)
Description copied from class: AbstractRubette
Runs the Rubette. This is the heart of the Rubette and implements the actual computation. Input values are retrieved with the getInput method and output values are stored using the setOutput method. The runInfo parameter object has a method stopped() which should be called regularly, and, in the case it returns false, the run() method should exit gracefully.

Specified by:
run in interface Rubette
Specified by:
run in class AbstractRubette
Parameters:
runInfo - contains information about the Runner that executes the network

hasView

public boolean hasView()
Description copied from class: AbstractRubette
Returns true iff this Rubette has a view. A view should provide a visual (or aural) representation of the configuration (resp. values) of the Rubette, but must never affect the computation.

Specified by:
hasView in interface Rubette
Overrides:
hasView in class AbstractRubette

getView

public javax.swing.JComponent getView()
Description copied from class: AbstractRubette
Returns the Swing component for the view. If this Rubette has no view, this simply returns null.

Specified by:
getView in interface Rubette
Overrides:
getView in class AbstractRubette

toXML

public void toXML(XMLWriter writer)
Description copied from class: AbstractRubette
Writes an XML description of this rubette. This method should write XML for the configuration of this Rubette.

Specified by:
toXML in interface Rubette
Specified by:
toXML in class AbstractRubette

fromXML

public Rubette fromXML(XMLReader reader,
                       org.w3c.dom.Element element)
Description copied from class: AbstractRubette
Creates a rubette from an XML description starting with element.

Specified by:
fromXML in interface Rubette
Specified by:
fromXML in class AbstractRubette