insensa.commands
Class ImportProjectCommand
java.lang.Object
insensa.commands.AbstractModelCommand
insensa.commands.ImportProjectCommand
- All Implemented Interfaces:
- ModelCommand
public class ImportProjectCommand
- extends AbstractModelCommand
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sourceDir
private java.io.File sourceDir
user
private CUser user
fileSetConfigs
private java.util.List<java.io.File> fileSetConfigs
fileConfigs
private java.util.List<java.io.File> fileConfigs
projectConfig
private java.io.File projectConfig
status
private float status
ImportProjectCommand
public ImportProjectCommand(CUser user,
java.io.File sourceDir)
- Parameters:
user
- sourceDir
-
copyFiles
public void copyFiles(java.io.File source,
java.io.File target,
float stepSize)
throws java.io.IOException
- Parameters:
source
- target
- stepSize
-
- Throws:
java.io.IOException
correctVersion
private void correctVersion()
throws java.io.IOException
- Throws:
java.io.IOException
countFiles
public int countFiles(java.io.File source)
throws ModelCommandException
- Parameters:
source
-
- Returns:
-
- Throws:
ModelCommandException
execute
public void execute()
throws java.io.IOException,
CRasterFileException
- Throws:
java.io.IOException
CRasterFileException
- See Also:
ModelCommand.execute()
setSourceDir
public void setSourceDir(java.io.File sourceDir)
- Parameters:
sourceDir
-
setUser
public void setUser(CUser user)
- Parameters:
user
-