|
||||||||||
| 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 IAgentprj - The project to operate withpublic java.lang.String getName()
getName in interface IAgentpublic void setName(java.lang.String name)
setName in interface IAgentid - The id to setpublic long getPeriod()
getPeriod in interface IAgentpublic void setPeriod(long period)
setPeriod in interface IAgentperiod - The period to setpublic User getActor()
public void setActor(User actor)
IAgent
setActor in interface IAgentactor - The actor to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||