Ground.java
/*
* $Id: Ground.java,v 1.4 2008/06/26 10:10:34 koga Exp $
*
* Copyright (C) 2004 Koga Laboratory. All rights reserved.
*
*/
package org.mklab.tool.control.system.source;
import org.mklab.nfc.matrix.ComplexNumericalMatrix;
import org.mklab.nfc.matrix.RealNumericalMatrix;
import org.mklab.nfc.scalar.ComplexNumericalScalar;
import org.mklab.nfc.scalar.RealNumericalScalar;
/**
* 0を発生するシステムを表すクラスです。
*
* @author Koga Laboratory
* @version $Revision: 1.4 $, 2005/06/15
* @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 Ground<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 ContinuousSource<RS,RM,CS,CM> {
/**
* 新しく生成された<code>Ground</code>オブジェクトを初期化します。
* @param sunit unit of scalar
*/
public Ground(RS sunit) {
super(-1, sunit);
setAutoSize(true);
}
/**
* {@inheritDoc}
*/
@Override
public RM outputEquation(final RS t) {
//return new DoubleMatrix(getOutputSize(), 1);
return t.createZeroGrid(getOutputSize(), 1);
}
}