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 another. Connection is made by instrument's index in the Orchestra
Author:
Nick Didkovsky, copyright 2000 Nick Didkovsky, all rights reserved
  • Constructor Summary

    Constructors
    Constructor Description
    Patch()  
    Patch​(int fromIndex, int toIndex)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object create()
    XMLCreatable Interface
    boolean equals​(java.lang.Object obj)  
    int getFromIndex()  
    java.lang.String getName()  
    int getToIndex()  
    void handleAttribute​(java.lang.String name, java.lang.String value)
    XMLCreatable Interface
    int hashCode()  
    static void main​(java.lang.String[] args)  
    void setFromIndex​(int v)  
    void setName​(java.lang.String s)  
    void setToIndex​(int v)  
    java.lang.String toString()  
    void writeXML​(java.io.PrintWriter out)  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Patch

      public Patch()
    • Patch

      public Patch​(int fromIndex, int toIndex)
  • Method Details

    • 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)