ClockSource.java
/*
* Created on 2006/02/18
* Copyright (C) 2006 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;
/**
* 時刻を出力するシステムです。
*
* @author Yusuke Tsutsui
* @version $Revision: 1.3 $, 2006/02/18
* @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 ClockSource<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> {
/**
* コンストラクター
* @param sunit unit of scalar
*/
public ClockSource(RS sunit) {
super(1, sunit);
}
/**
* {@inheritDoc}
*/
@Override
public RM outputEquation(RS t) {
RS[] tt = this.sunit.createArray(1);
tt[0]=t;
return this.sunit.createGrid(tt);
}
}