Terminator.java
/*
* Created on 2007/02/05
* Copyright (C) 2007 Koga Laboratory. All rights reserved.
*
*/
package org.mklab.tool.control.system.sink;
import org.mklab.nfc.matrix.ComplexNumericalMatrix;
import org.mklab.nfc.matrix.RealNumericalMatrix;
import org.mklab.nfc.scalar.ComplexNumericalScalar;
import org.mklab.nfc.scalar.RealNumericalScalar;
/**
* 終端を表わすクラスです。
*
* @author koga
* @version $Revision: 1.5 $, 2007/02/05
* @param <RS> type of real scalar
* @param <RM> type of real matrix
* @param <CS> type of complex scalar
* @param <CM> type of complex matrix
*/
public class Terminator<RS extends RealNumericalScalar<RS,RM,CS,CM>, RM extends RealNumericalMatrix<RS,RM,CS,CM>, CS extends ComplexNumericalScalar<RS,RM,CS,CM>, CM extends ComplexNumericalMatrix<RS,RM,CS,CM>> extends ContinuousSink<RS,RM,CS,CM> {
/**
* 新しく生成された<code>Terminator</code>オブジェクトを初期化します。
* @param sunit unit of scalar
*/
public Terminator(RS sunit) {
super(-1, sunit);
setAutoSize(true);
}
/**
* {@inheritDoc}
*/
@Override
public RM outputEquation( final RS t, final RM u) {
return this.sunit.createZeroGrid(getInputSize(), 1);
}
}