|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sconman.agents.AbstractAgent
public abstract class AbstractAgent
Convenience class to be extended by IAgent
implementations.
Field Summary | |
---|---|
protected User |
actor
The actor to use when doing actions |
Constructor Summary | |
---|---|
AbstractAgent()
|
Method Summary | |
---|---|
User |
getActor()
|
java.lang.String |
getName()
Returns the agent id. |
long |
getPeriod()
Returns the execution period in miliseconds. |
abstract void |
run(Project prj)
This method will be called by the SCM engine each getPeriod()
miliseconds to perform some maintenance task. |
void |
setActor(User actor)
Sets the actor that will be used to do actions |
void |
setName(java.lang.String name)
Sets the agent id. |
void |
setPeriod(long period)
Sets the execution period in miliseconds |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected User actor
Constructor Detail |
---|
public AbstractAgent()
Method Detail |
---|
public abstract void run(Project prj)
getPeriod()
miliseconds to perform some maintenance task.
run
in interface IAgent
prj
- The project to operate withpublic java.lang.String getName()
getName
in interface IAgent
public void setName(java.lang.String name)
setName
in interface IAgent
id
- The id to setpublic long getPeriod()
getPeriod
in interface IAgent
public void setPeriod(long period)
setPeriod
in interface IAgent
period
- The period to setpublic User getActor()
public void setActor(User actor)
IAgent
setActor
in interface IAgent
actor
- The actor to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |