Package maths

Class Param


  • public class Param
    extends java.lang.Object
    Represents a parameter with a type, index, value, and optional monomial.
    • Constructor Summary

      Constructors 
      Constructor Description
      Param()
      Default constructor for Param.
      Param​(int index, double val)
      Constructs a Param with the specified index and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getString()
      Returns a string representation of the parameter index.
      void Load​(java.io.DataInputStream in)
      Loads the parameter from a DataInputStream.
      void Save​(java.io.DataOutputStream out)
      Saves the parameter to a DataOutputStream.
      void setParameterStatic()
      Sets the parameter type to static.
      java.lang.String toString()
      Returns a string representation of the parameter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • STATIC

        public static int STATIC
      • type

        public int type
      • xindex

        public int xindex
      • value

        public double value
      • Solved

        public boolean Solved
    • Constructor Detail

      • Param

        public Param()
        Default constructor for Param.
      • Param

        public Param​(int index,
                     double val)
        Constructs a Param with the specified index and value.
        Parameters:
        index - the index of the parameter
        val - the value of the parameter
    • Method Detail

      • setParameterStatic

        public void setParameterStatic()
        Sets the parameter type to static.
      • toString

        public java.lang.String toString()
        Returns a string representation of the parameter.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string representation of the parameter
      • getString

        public java.lang.String getString()
        Returns a string representation of the parameter index.
        Returns:
        the string representation of the parameter index
      • Save

        public void Save​(java.io.DataOutputStream out)
                  throws java.io.IOException
        Saves the parameter to a DataOutputStream.
        Parameters:
        out - the DataOutputStream to write to
        Throws:
        java.io.IOException - if an I/O error occurs
      • Load

        public void Load​(java.io.DataInputStream in)
                  throws java.io.IOException
        Loads the parameter from a DataInputStream.
        Parameters:
        in - the DataInputStream to read from
        Throws:
        java.io.IOException - if an I/O error occurs