sk.robotics.rlcs.agents.os
Class FileLoaderAgent

java.lang.Object
  extended by sk.robotics.rlcs.agentspace.Agent
      extended by sk.robotics.rlcs.agents.os.FileLoaderAgent
All Implemented Interfaces:
java.lang.Runnable

public class FileLoaderAgent
extends Agent

Agent for loading content of a file into space. It supports two modes: binary and text. In binary mode, contents of the file are stored in space as raw array of bytes, while in text mode, the file is read into a string, possibly using a custom charset, and stored in space as string.


Nested Class Summary
static class FileLoaderAgent.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
FileLoaderAgent(FileLoaderAgent.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

FileLoaderAgent

public FileLoaderAgent(FileLoaderAgent.Cfg cfg)
Method Detail

senseSelectAct

protected void senseSelectAct()
Overrides:
senseSelectAct in class Agent