class TsVariableWindow extends AbstractTsModifier {

    @Override
    public void data(TsDomain domain, List<DataBlock> data) {
        TsPeriodSelector sel=new TsPeriodSelector();
        sel.between(start, end);
        TsDomain sdom = domain.select(sel);
        int nbeg=sdom.getStart().minus(domain.getStart());
        int n=sdom.getLength();
        if (n == 0)
            return;
        ArrayList<DataBlock> tmp=new ArrayList<>();
        for (DataBlock bl : data){
            tmp.add(bl.extract(nbeg, n));
        }
        var.data(sdom, tmp);
    }

    public  TsVariableWindow(final ITsVariable var, final Day start, final Day end);

}