Pandora
Class ModelVariable

public class ModelVariable

This class represents a variable of a model that will also be added in the window that holds the model variables ( GraphvarWindow ).

Type of variables allowed are:
  • Integer
  • Double
  • Float
  • Boolean
  • Version:
    0.1
    Author:
    Foudalis Ilias
    Constructor Detail

    ModelVariable

    public ModelVariable(java.lang.String name,
                         java.lang.String type,
                         java.lang.String value)
    Class constructor.
    Parameters:
    name - String : the name of the variable.
    type - String : the type of the variable ( double, float, integer, boolean ).
    value - String : The value of the variable.

    Method Detail

    toFloat

    public float toFloat()
    Returns the value of the variable as a float number.
    Returns:
    float

    toInt

    public int toInt()
    Returns the value of the variable as an integer.
    Returns:
    int

    toDouble

    public double toDouble()
    Returns the value of the variable as a double.
    Returns:
    double

    toBoolan

    public boolean toBoolan()
    Returns the value of the variable as boolean.
    Returns:
    boolean