com.jsyn.ports
Class UnitBlockPort

java.lang.Object
  extended by com.jsyn.ports.UnitPort
      extended by com.jsyn.ports.UnitValuePort
          extended by com.jsyn.ports.UnitBlockPort
Direct Known Subclasses:
UnitInputPort, UnitOutputPort

public class UnitBlockPort
extends UnitValuePort


Constructor Summary
UnitBlockPort(int numParts, java.lang.String name, double defaultValue)
           
UnitBlockPort(java.lang.String name)
           
 
Method Summary
 void disconnectAll(int partNum)
           
 int getNumParts()
           
 double getValue()
           
 double getValue(int partNum)
           
 double[] getValues()
           
 double[] getValues(int partNum)
           
 boolean isConnected()
           
 boolean isConnected(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

UnitBlockPort

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

UnitBlockPort

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

getNumParts

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

getValues

public double[] getValues()

getValues

public double[] getValues(int partNum)

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)

isConnected

public boolean isConnected()

isConnected

public boolean isConnected(int partNum)

disconnectAll

public void disconnectAll(int partNum)