com.softsynth.jmsl.util
Class Patch
java.lang.Object
com.softsynth.jmsl.util.Patch
- All Implemented Interfaces:
- XMLCreatable, XMLWritable
public class Patch
- extends java.lang.Object
- implements XMLWritable, XMLCreatable
Represents the output of one instrument being patched to the input of a
JSynSignalProcessingInstrument. Connection is made by instrument's index in
the Orchestra
- Author:
- Nick Didkovsky, copyright 2000 Nick Didkovsky, all rights reserved
Constructor Summary |
Patch()
|
Patch(int fromIndex,
int toIndex)
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Patch
public Patch()
Patch
public Patch(int fromIndex,
int toIndex)
setName
public void setName(java.lang.String s)
getName
public java.lang.String getName()
setFromIndex
public void setFromIndex(int v)
setToIndex
public void setToIndex(int v)
getFromIndex
public int getFromIndex()
getToIndex
public int getToIndex()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
handleAttribute
public void handleAttribute(java.lang.String name,
java.lang.String value)
- XMLCreatable Interface
- Specified by:
handleAttribute
in interface XMLCreatable
create
public java.lang.Object create()
- XMLCreatable Interface
- Specified by:
create
in interface XMLCreatable
writeXML
public void writeXML(java.io.PrintWriter out)
throws java.io.IOException
- Specified by:
writeXML
in interface XMLWritable
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)