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

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

public static class GrayScaleAgent.Cfg
extends ImageFilterAgent.Cfg


Nested Class Summary
 
Nested classes/interfaces inherited from class sk.robotics.rlcs.agents.image.ImageFilterAgent.Cfg
ImageFilterAgent.Cfg.ImageType
 
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
 double blue
          Multiplier for the blue color component.
 double green
          Multiplier for the green color component.
 double red
          Multiplier for the red color component.
 
Fields inherited from class sk.robotics.rlcs.agents.image.ImageFilterAgent.Cfg
blockSourceImage, blockTargetImage, copyBeforeFilter, inputImageType, outputHeight, outputImageType, outputWidth, priority, validity
 
Fields inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
enabled, id, logLevel, timerPeriodMs, triggers
 
Constructor Summary
GrayScaleAgent.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

red

public double red
Multiplier for the red color component.


green

public double green
Multiplier for the green color component.


blue

public double blue
Multiplier for the blue color component.

Constructor Detail

GrayScaleAgent.Cfg

public GrayScaleAgent.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