ngmf.util.SimpleDirectoryOutput Maven / Gradle / Ivy
/*
* $Id: SimpleDirectoryOutput.java 50798ee5e25c 2013-01-09 [email protected] $
*
* This file is part of the Object Modeling System (OMS),
* 2007-2012, Olaf David and others, Colorado State University.
*
* OMS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, version 2.1.
*
* OMS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with OMS. If not, see .
*/
package ngmf.util;
import java.io.File;
/**
*
* @author od
*/
public class SimpleDirectoryOutput extends OutputStragegy {
public static final String OUT_NAME = "out";
public SimpleDirectoryOutput(File base, String simName) {
super(new File(base, simName));
}
@Override
public File nextOutputFolder() {
File f = new File(basedir, OUT_NAME);
ensureEmptyIfExist(f);
return f;
}
@Override
public File lastOutputFolder() {
return new File(basedir, OUT_NAME);
}
@Override
public File firstOutputFolder() {
return new File(basedir, OUT_NAME);
}
@Override
public File previousOutputFolder() {
return new File(basedir, OUT_NAME);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy