Class Argument

java.lang.Object
jadex.common.UnparsedExpression
jadex.model.modelinfo.Argument
All Implemented Interfaces:
IArgument

public class Argument extends jadex.common.UnparsedExpression implements IArgument
Simple default implementation for an argument.
  • Field Details

    • description

      protected String description
      The description.
  • Constructor Details

    • Argument

      public Argument()
      Create a new argument.
    • Argument

      public Argument(String name, String description, String classname, String defaultvalue)
      Create a new argument.
  • Method Details

    • getDescription

      public String getDescription()
      Get the description.
      Specified by:
      getDescription in interface IArgument
      Returns:
      The description.
    • setDescription

      public void setDescription(String description)
      Set the description.
      Parameters:
      description - The description to set.
    • getDefaultValue

      public jadex.common.UnparsedExpression getDefaultValue()
      Get the default value.
      Specified by:
      getDefaultValue in interface IArgument
      Returns:
      The default value.
    • validate

      public boolean validate(String input)
      Check the validity of an input.
      Specified by:
      validate in interface IArgument
      Parameters:
      input - The input.
      Returns:
      True, if valid.
    • toString

      public String toString()
      Get the string representation.
      Overrides:
      toString in class jadex.common.UnparsedExpression
      Returns:
      The string representation.
    • getResult

      public static Object getResult(Collection<jadex.common.Tuple2<String,Object>> results, String name)
      Get a specific result from a result collection.
    • convertArguments

      public static Map<String,Object> convertArguments(Collection<jadex.common.Tuple2<String,Object>> results)
      Convert arguments to argument map.