com.jsyn.ports
Class UnitVariablePort

java.lang.Object
  extended by com.jsyn.ports.UnitPort
      extended by com.jsyn.ports.UnitValuePort
          extended by com.jsyn.ports.UnitVariablePort

public class UnitVariablePort
extends UnitValuePort


Constructor Summary
UnitVariablePort(int numParts, java.lang.String name, double defaultValue)
           
UnitVariablePort(java.lang.String name)
           
UnitVariablePort(java.lang.String name, double defaultValue)
           
 
Method Summary
 int getNumParts()
           
 double getValue()
           
 double getValue(int partNum)
           
 void setValue(double value)
           
 void setValue(int partNum, double value)
           
 
Methods inherited from class com.jsyn.ports.UnitValuePort
getCurrent, set, set, set, set, set, set
 
Methods inherited from class com.jsyn.ports.UnitPort
getName, getUnit, setUnitGenerator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitVariablePort

public UnitVariablePort(int numParts,
                        java.lang.String name,
                        double defaultValue)

UnitVariablePort

public UnitVariablePort(java.lang.String name,
                        double defaultValue)

UnitVariablePort

public UnitVariablePort(java.lang.String name)
Method Detail

getValue

public double getValue(int partNum)
Specified by:
getValue in class UnitValuePort

getValue

public double getValue()

setValue

public void setValue(int partNum,
                     double value)
Specified by:
setValue in class UnitValuePort

setValue

public void setValue(double value)

getNumParts

public int getNumParts()
Specified by:
getNumParts in class UnitValuePort