sk.robotics.rlcs.agents.image
Class ImageServerAgent.Cfg

java.lang.Object
  extended by sk.robotics.rlcs.agentspace.Agent.Cfg
      extended by sk.robotics.rlcs.agents.image.ImageServerAgent.Cfg
Enclosing class:
ImageServerAgent

public static class ImageServerAgent.Cfg
extends Agent.Cfg


Nested Class Summary
 
Nested classes/interfaces inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
Agent.Cfg.Limited, Agent.Cfg.NoDefault, Agent.Cfg.Required, Agent.Cfg.Validator
 
Field Summary
 java.lang.String blockImage
          Name of block with the image to generate stream from.
 java.lang.String imageFormat
          Format of sent image.
 java.lang.String imagePrefix
          Prefix to send before each image.
 java.lang.String imageSuffix
          Suffix to send after each image.
 java.lang.String listenAddress
          IP address to listen on.
 int listenPort
          TCP port to listen on.
 
Fields inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
enabled, id, logLevel, timerPeriodMs, triggers
 
Constructor Summary
ImageServerAgent.Cfg()
           
 
Method Summary
 void validate()
          Config validation.
 
Methods inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
createAgent, equals, getHiddenFields, hideFields
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenAddress

public java.lang.String listenAddress
IP address to listen on. Not set means all interfaces/addresses.


listenPort

public int listenPort
TCP port to listen on.


imagePrefix

public java.lang.String imagePrefix
Prefix to send before each image. This will be used as formatting string in call to String.format(), using single formatting argument, the length of the image in bytes. So %d can be used in this string, and will expand to the image length.


imageSuffix

public java.lang.String imageSuffix
Suffix to send after each image. This string is just sent, no formatting is performed.


imageFormat

public java.lang.String imageFormat
Format of sent image. Allowed are values accepted by default by javax.imageio.ImageIO.


blockImage

public java.lang.String blockImage
Name of block with the image to generate stream from.

Block access:
read
Stored type:
java.awt.image.RenderedImage
Constructor Detail

ImageServerAgent.Cfg

public ImageServerAgent.Cfg()
Method Detail

validate

public void validate()
Description copied from class: Agent.Cfg
Config validation. This base versions checks that fields declared as required (through the Required annotation) are filled. Derived agent config classes may override this to provide custom validation function for user defined configuration. It can be as well used for setting default values for uninitialized fields, or any other processing. To veto launching the agent, it can throw an exception.

Overrides:
validate in class Agent.Cfg