net.sourceforge.sconman.agents
Class FileAdderAgent

java.lang.Object
  extended by net.sourceforge.sconman.agents.AbstractAgent
      extended by net.sourceforge.sconman.agents.FileAdderAgent
All Implemented Interfaces:
IAgent

public class FileAdderAgent
extends AbstractAgent

This class is an IAgent implementation that checks periodically in a filesystem directory for contents to be added to the project.

Author:
mikeshadow

Field Summary
 
Fields inherited from class net.sourceforge.sconman.agents.AbstractAgent
actor
 
Constructor Summary
FileAdderAgent()
          Constructor for FileAdderAgent.
 
Method Summary
 java.lang.String getDirPath()
          Returns the dirPath.
 boolean isDelete()
          Returns the delete.
 void run(Project prj)
          When this agent runs, the directory at getDirPath() is traversed looking for files on it that are added to the project's contents repository and deleted if #getDelete==true
 void setDelete(boolean delete)
          Sets the delete.
 void setDirPath(java.lang.String dirPath)
          Sets the dirPath.
 
Methods inherited from class net.sourceforge.sconman.agents.AbstractAgent
getActor, getName, getPeriod, setActor, setName, setPeriod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileAdderAgent

public FileAdderAgent()
Constructor for FileAdderAgent.

Method Detail

run

public void run(Project prj)
When this agent runs, the directory at getDirPath() is traversed looking for files on it that are added to the project's contents repository and deleted if #getDelete==true

Specified by:
run in interface IAgent
Specified by:
run in class AbstractAgent
Parameters:
prj - The project where the contents will be added

getDirPath

public java.lang.String getDirPath()
Returns the dirPath.

Returns:
String

setDirPath

public void setDirPath(java.lang.String dirPath)
Sets the dirPath.

Parameters:
dirPath - The dirPath to set

isDelete

public boolean isDelete()
Returns the delete.

Returns:
boolean

setDelete

public void setDelete(boolean delete)
Sets the delete.

Parameters:
delete - The delete to set


Copyright null null. All Rights Reserved.