From 8189116ea4b5db4675e31dfd04a5687d55e29262 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Tue, 6 May 2014 14:29:37 +0100 Subject: Added javadocs, made minor changes to the comments --- doc/jcgp/backend/parameters/IntegerParameter.html | 394 ++++++++++++++++++++++ 1 file changed, 394 insertions(+) create mode 100644 doc/jcgp/backend/parameters/IntegerParameter.html (limited to 'doc/jcgp/backend/parameters/IntegerParameter.html') diff --git a/doc/jcgp/backend/parameters/IntegerParameter.html b/doc/jcgp/backend/parameters/IntegerParameter.html new file mode 100644 index 0000000..6a79d0a --- /dev/null +++ b/doc/jcgp/backend/parameters/IntegerParameter.html @@ -0,0 +1,394 @@ + + + + + +IntegerParameter + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parameters
+

Class IntegerParameter

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    IntegerMonitor
    +
    +
    +
    +
    public class IntegerParameter
    +extends Parameter<java.lang.Number>
    +
    Parameter subclass for the double type. Most of the + functionality is already implemented in Parameter, + leaving only construction and type definition to the + subclasses. +

    + This class contains three constructors, two of which are public. + One assumes the parameter is not critical and only takes a name + and initial value, while the other allows the critical flag + to be set as well. The third constructor is protected and allows + the monitor flag to be set as well, allowing subclasses of this class + to be used as monitors. See IntegerMonitor for an example + of this usage. +

    + The validate method is overridden here and left blank since not all + parameters actually require validation, but where validation is + required this method can be anonymously overridden on an instance-to-instance + basis.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      IntegerParameter(int value, + java.lang.String name) +
      Creates a new instance of this class, assuming the parameter + is not critical.
      +
      IntegerParameter(int value, + java.lang.String name, + boolean critical) +
      Creates a new instance of this class.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.Integerget() 
      voidvalidate(java.lang.Number newValue) +
      This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IntegerParameter

        +
        public IntegerParameter(int value,
        +                        java.lang.String name)
        +
        Creates a new instance of this class, assuming the parameter + is not critical.
        +
        +
        Parameters:
        +
        value - the initial value for this parameter.
        +
        name - the name of this parameter, for GUI display.
        +
        +
      • +
      + + + +
        +
      • +

        IntegerParameter

        +
        public IntegerParameter(int value,
        +                        java.lang.String name,
        +                        boolean critical)
        +
        Creates a new instance of this class.
        +
        +
        Parameters:
        +
        value - the initial value for this parameter.
        +
        name - the name of this parameter, for GUI display.
        +
        critical - true if the parameter is critical.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public java.lang.Integer get()
        +
        +
        Overrides:
        +
        get in class Parameter<java.lang.Number>
        +
        Returns:
        +
        the parameter's current value.
        +
        +
      • +
      + + + +
        +
      • +

        validate

        +
        public void validate(java.lang.Number newValue)
        +
        Description copied from class: Parameter
        +
        This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made. This method + is intended to set the status field according to the + new value, so that the user can be informed if any parameters + are currently set to invalid values.
        +
        +
        Specified by:
        +
        validate in class Parameter<java.lang.Number>
        +
        Parameters:
        +
        newValue - the new value.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + -- cgit v1.2.3