|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsk.robotics.rlcs.agentspace.Agent
sk.robotics.rlcs.agents.os.FileToucherAgent
public class FileToucherAgent
Simple agent for touching a file. It sets the file's last-modified timestamp.
This agent uses java.io.File.setLastModified(), which on unix works only if the caller is owner of the file. It that is not the case, ExecuterAgent may be used on instead, executing the touch command.
Nested Class Summary | |
---|---|
static class |
FileToucherAgent.Cfg
|
Nested classes/interfaces inherited from class sk.robotics.rlcs.agentspace.Agent |
---|
Agent.AgentThread, Agent.Hidden, Agent.ThreadCreator, Agent.WorkerThreadGroup |
Field Summary |
---|
Fields inherited from class sk.robotics.rlcs.agentspace.Agent |
---|
logTimeFormat, space, thread, workerThreads |
Constructor Summary | |
---|---|
FileToucherAgent(FileToucherAgent.Cfg cfg)
|
Method Summary | |
---|---|
protected void |
senseSelectAct()
|
Methods inherited from class sk.robotics.rlcs.agentspace.Agent |
---|
cleanup, exit, getConfig, getIdleTime, getWorkerThreadGroup, isAlive, kill, log, log, log, log, log, run, senseSelectAct, setLogLevel, setPeriodicTrigger, setPeriodicTrigger, sleep, start, startup, toString, trigger, trigger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileToucherAgent(FileToucherAgent.Cfg cfg)
Method Detail |
---|
protected void senseSelectAct()
senseSelectAct
in class Agent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |