flanagan.control
Class BlackBox
- java.lang.Object
-
- flanagan.control.BlackBox
-
- Direct Known Subclasses:
- AtoD, ClosedLoop, Compensator, DelayLine, DtoA, FirstOrder, HighPassPassive, LowPassPassive, OpenLoop, Prop, PropDeriv, PropInt, PropIntDeriv, SecondOrder, Transducer, ZeroOrderHold
public class BlackBox extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description BlackBox()BlackBox(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()BlackBoxcopy()voidcopyBBvariables(BlackBox bb)doubleevalMagTransFunctS()doubleevalMagTransFunctS(Complex sValue)doubleevalMagTransFunctS(double freq)doubleevalMagTransFunctZ()doubleevalMagTransFunctZ(Complex zValue)doubleevalPhaseTransFunctS()doubleevalPhaseTransFunctS(Complex sValue)doubleevalPhaseTransFunctS(double freq)doubleevalPhaseTransFunctZ()doubleevalPhaseTransFunctZ(Complex zValue)ComplexevalTransFunctS()ComplexevalTransFunctS(Complex sValue)ComplexevalTransFunctS(double freq)ComplexevalTransFunctZ()ComplexevalTransFunctZ(Complex zValue)doublegetCurrentInputT()doublegetCurrentOutputT()doublegetCurrentOutputT(double ttime, double inp)doublegetCurrentTime()doublegetDeadTime()doublegetDeltaT()doublegetForgetFactor()ComplexgetInputS()double[]getInputT()intgetIntegMethod()booleangetMaptozero()java.lang.StringgetName()intgetNplotPoints()ComplexgetOutputS()ComplexgetOutputS(Complex svalue, Complex inputs)double[]getOutputT()intgetPadeOrder()Complex[]getPolesPadeS()Complex[]getPolesS()Complex[]getPolesZ()ComplexgetS()doublegetSampFreq()intgetSampleLength()ComplexPolygetSdenom()intgetSdenomDeg()ComplexPolygetSdenomPade()intgetSdenomPadeDeg()ComplexgetSdenomScaleFactor()doublegetSeadyStateValue()doublegetSeadyStateValue(double mag)ComplexPolygetSnumer()intgetSnumerDeg()ComplexPolygetSnumerPade()intgetSnumerPadeDeg()ComplexgetSnumerScaleFactor()double[]getTime()ComplexgetZ()ComplexPolygetZdenom()intgetZdenomDeg()Complex[]getZerosPadeS()Complex[]getZerosS()Complex[]getZerosZ()ComplexPolygetZnumer()intgetZnumerDeg()intgetZtransformMethod()voidimpulseInput(double finalTime)voidimpulseInput(double impulseMag, double finalTime)static Complex[][]inverseTransform(ComplexPoly numer, ComplexPoly denom)static Complex[][]inverseTransform(ComplexPoly numer, ComplexPoly denom, Complex magNumer, Complex magDenom)static double[][]inverseTransformToReal(ComplexPoly numer, ComplexPoly denom)voidmapstozAdHoc()voidmapstozAdHoc(double deltaT)intorderPade()voidplotBode(double lowFreq, double highFreq)voidplotPoleZeroPadeS()voidplotPoleZeroS()voidplotPoleZeroZ()voidrampInput(double finalTime)voidrampInput(double rampGradient, double finalTime)voidrampInput(double rampGradient, int rampOrder, double finalTime)voidrampInput(int rampOrder, double finalTime)voidresetZero()static ComplexscaleFactor(ComplexPoly poly, Complex[] roots)voidsetDeadTime(double deadtime)voidsetDeadTime(double deadtime, int orderPade)voidsetDeltaT(double deltaT)voidsetForgetFactor(double forget)voidsetInputS(Complex input)voidsetInputT(double[] ttime, double[] inputt)voidsetInputT(double ttime, double inputt)voidsetIntegrateOption(int integMethod)voidsetIntegrateOption(java.lang.String integMethodS)voidsetMaptozero(boolean maptozero)voidsetName(java.lang.String name)voidsetNplotPoints(int nPoints)voidsetPadeOrder(int orderPade)voidsetS(Complex s)voidsetS(double si)voidsetS(double sr, double si)voidsetSampFreq(double sfreq)voidsetSampleLength(int samplen)voidsetSdenom(Complex[] coeff)voidsetSdenom(ComplexPoly coeff)voidsetSdenom(double[] coeff)voidsetSnumer(Complex[] coeff)voidsetSnumer(ComplexPoly coeff)voidsetSnumer(double[] coeff)voidsetZ(Complex z)voidsetZ(double zr, double zi)voidsetZdenom(Complex[] coeff)voidsetZdenom(ComplexPoly coeff)voidsetZdenom(double[] coeff)voidsetZnumer(Complex[] coeff)voidsetZnumer(ComplexPoly coeff)voidsetZnumer(double[] coeff)voidsetZtransformMethod(int ztransMethod)voidstepInput(double finalTime)voidstepInput(double stepMag, double finalTime)static ComplextimeTerm(double ttime, Complex coeff, Complex constant, Complex power)static doubletimeTerm(double ttime, double coeff, double constant, double power)static doubletimeTerm(double ttime, double coeff, double constant, int power)static voidtransientResponse(int nPoints, double finalTime, double deadTime, ComplexPoly numerT, ComplexPoly denomT, java.lang.String graphtitle1, java.lang.String graphtitle2)static voidtransientResponse(int nPoints, double finalTime, double deadTime, ComplexPoly numerT, ComplexPoly denomT, java.lang.String graphtitle1, java.lang.String graphtitle2, Complex magN, Complex magD)voidzTransform()voidzTransform(double deltat)
-
-
-
Method Detail
-
setSnumer
public void setSnumer(double[] coeff)
-
setSnumer
public void setSnumer(Complex[] coeff)
-
setSnumer
public void setSnumer(ComplexPoly coeff)
-
setSdenom
public void setSdenom(double[] coeff)
-
setSdenom
public void setSdenom(Complex[] coeff)
-
setSdenom
public void setSdenom(ComplexPoly coeff)
-
scaleFactor
public static Complex scaleFactor(ComplexPoly poly, Complex[] roots)
-
getSnumerScaleFactor
public Complex getSnumerScaleFactor()
-
getSdenomScaleFactor
public Complex getSdenomScaleFactor()
-
setDeadTime
public void setDeadTime(double deadtime)
-
setDeadTime
public void setDeadTime(double deadtime, int orderPade)
-
setPadeOrder
public void setPadeOrder(int orderPade)
-
getDeadTime
public double getDeadTime()
-
getPadeOrder
public int getPadeOrder()
-
orderPade
public int orderPade()
-
zTransform
public void zTransform(double deltat)
-
zTransform
public void zTransform()
-
mapstozAdHoc
public void mapstozAdHoc(double deltaT)
-
mapstozAdHoc
public void mapstozAdHoc()
-
setMaptozero
public void setMaptozero(boolean maptozero)
-
setZnumer
public void setZnumer(double[] coeff)
-
setZnumer
public void setZnumer(Complex[] coeff)
-
setZnumer
public void setZnumer(ComplexPoly coeff)
-
setZdenom
public void setZdenom(double[] coeff)
-
setZdenom
public void setZdenom(Complex[] coeff)
-
setZdenom
public void setZdenom(ComplexPoly coeff)
-
setDeltaT
public void setDeltaT(double deltaT)
-
setForgetFactor
public void setForgetFactor(double forget)
-
setSampFreq
public void setSampFreq(double sfreq)
-
setS
public void setS(Complex s)
-
setS
public void setS(double sr, double si)
-
setS
public void setS(double si)
-
setZ
public void setZ(Complex z)
-
setZ
public void setZ(double zr, double zi)
-
setZtransformMethod
public void setZtransformMethod(int ztransMethod)
-
setIntegrateOption
public void setIntegrateOption(int integMethod)
-
setIntegrateOption
public void setIntegrateOption(java.lang.String integMethodS)
-
setSampleLength
public void setSampleLength(int samplen)
-
setName
public void setName(java.lang.String name)
-
setInputT
public void setInputT(double ttime, double inputt)
-
setInputT
public void setInputT(double[] ttime, double[] inputt)
-
setInputS
public void setInputS(Complex input)
-
resetZero
public void resetZero()
-
getSeadyStateValue
public double getSeadyStateValue()
-
getSeadyStateValue
public double getSeadyStateValue(double mag)
-
evalTransFunctS
public Complex evalTransFunctS()
-
evalTransFunctS
public Complex evalTransFunctS(double freq)
-
evalMagTransFunctS
public double evalMagTransFunctS()
-
evalMagTransFunctS
public double evalMagTransFunctS(Complex sValue)
-
evalMagTransFunctS
public double evalMagTransFunctS(double freq)
-
evalPhaseTransFunctS
public double evalPhaseTransFunctS()
-
evalPhaseTransFunctS
public double evalPhaseTransFunctS(Complex sValue)
-
evalPhaseTransFunctS
public double evalPhaseTransFunctS(double freq)
-
evalTransFunctZ
public Complex evalTransFunctZ()
-
evalMagTransFunctZ
public double evalMagTransFunctZ()
-
evalMagTransFunctZ
public double evalMagTransFunctZ(Complex zValue)
-
evalPhaseTransFunctZ
public double evalPhaseTransFunctZ()
-
evalPhaseTransFunctZ
public double evalPhaseTransFunctZ(Complex zValue)
-
getIntegMethod
public int getIntegMethod()
-
getZtransformMethod
public int getZtransformMethod()
-
getSampleLength
public int getSampleLength()
-
getForgetFactor
public double getForgetFactor()
-
getCurrentTime
public double getCurrentTime()
-
getTime
public double[] getTime()
-
getCurrentInputT
public double getCurrentInputT()
-
getInputT
public double[] getInputT()
-
getInputS
public Complex getInputS()
-
getDeltaT
public double getDeltaT()
-
getSampFreq
public double getSampFreq()
-
getS
public Complex getS()
-
getZ
public Complex getZ()
-
getSnumerDeg
public int getSnumerDeg()
-
getSnumerPadeDeg
public int getSnumerPadeDeg()
-
getSdenomDeg
public int getSdenomDeg()
-
getSdenomPadeDeg
public int getSdenomPadeDeg()
-
getSnumer
public ComplexPoly getSnumer()
-
getSnumerPade
public ComplexPoly getSnumerPade()
-
getSdenom
public ComplexPoly getSdenom()
-
getSdenomPade
public ComplexPoly getSdenomPade()
-
getZnumerDeg
public int getZnumerDeg()
-
getZdenomDeg
public int getZdenomDeg()
-
getZnumer
public ComplexPoly getZnumer()
-
getZdenom
public ComplexPoly getZdenom()
-
getZerosS
public Complex[] getZerosS()
-
getZerosPadeS
public Complex[] getZerosPadeS()
-
getPolesS
public Complex[] getPolesS()
-
getPolesPadeS
public Complex[] getPolesPadeS()
-
getZerosZ
public Complex[] getZerosZ()
-
getPolesZ
public Complex[] getPolesZ()
-
getMaptozero
public boolean getMaptozero()
-
getName
public java.lang.String getName()
-
plotPoleZeroS
public void plotPoleZeroS()
-
plotPoleZeroPadeS
public void plotPoleZeroPadeS()
-
plotPoleZeroZ
public void plotPoleZeroZ()
-
plotBode
public void plotBode(double lowFreq, double highFreq)
-
getCurrentOutputT
public double getCurrentOutputT(double ttime, double inp)
-
getCurrentOutputT
public double getCurrentOutputT()
-
getOutputT
public double[] getOutputT()
-
getOutputS
public Complex getOutputS()
-
setNplotPoints
public void setNplotPoints(int nPoints)
-
getNplotPoints
public int getNplotPoints()
-
impulseInput
public void impulseInput(double impulseMag, double finalTime)
-
impulseInput
public void impulseInput(double finalTime)
-
stepInput
public void stepInput(double stepMag, double finalTime)
-
stepInput
public void stepInput(double finalTime)
-
rampInput
public void rampInput(double rampGradient, int rampOrder, double finalTime)
-
rampInput
public void rampInput(int rampOrder, double finalTime)
-
rampInput
public void rampInput(double rampGradient, double finalTime)
-
rampInput
public void rampInput(double finalTime)
-
transientResponse
public static void transientResponse(int nPoints, double finalTime, double deadTime, ComplexPoly numerT, ComplexPoly denomT, java.lang.String graphtitle1, java.lang.String graphtitle2)
-
transientResponse
public static void transientResponse(int nPoints, double finalTime, double deadTime, ComplexPoly numerT, ComplexPoly denomT, java.lang.String graphtitle1, java.lang.String graphtitle2, Complex magN, Complex magD)
-
timeTerm
public static Complex timeTerm(double ttime, Complex coeff, Complex constant, Complex power)
-
timeTerm
public static double timeTerm(double ttime, double coeff, double constant, int power)
-
timeTerm
public static double timeTerm(double ttime, double coeff, double constant, double power)
-
inverseTransformToReal
public static double[][] inverseTransformToReal(ComplexPoly numer, ComplexPoly denom)
-
inverseTransform
public static Complex[][] inverseTransform(ComplexPoly numer, ComplexPoly denom)
-
inverseTransform
public static Complex[][] inverseTransform(ComplexPoly numer, ComplexPoly denom, Complex magNumer, Complex magDenom)
-
copy
public BlackBox copy()
-
copyBBvariables
public void copyBBvariables(BlackBox bb)
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG