All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.ihmc.scs2.definition.yoVariable.YoVariableDefinition Maven / Gradle / Ivy

package us.ihmc.scs2.definition.yoVariable;

import us.ihmc.yoVariables.tools.YoTools;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

public abstract class YoVariableDefinition
{
   private String name;
   private String namespace;
   private String description;
   private double lowerBound;
   private double upperBound;

   public YoVariableDefinition()
   {
   }

   @XmlAttribute
   public void setName(String name)
   {
      this.name = name;
   }

   @XmlAttribute
   public void setNamespace(String namespace)
   {
      this.namespace = namespace;
   }

   @XmlAttribute
   public void setDescription(String description)
   {
      this.description = description;
   }

   @XmlElement
   public void setLowerBound(double lowerBound)
   {
      this.lowerBound = lowerBound;
   }

   @XmlElement
   public void setUpperBound(double upperBound)
   {
      this.upperBound = upperBound;
   }

   public String getName()
   {
      return name;
   }

   public String getNamespace()
   {
      return namespace;
   }

   public String getFullname()
   {
      if (namespace != null)
         return namespace + YoTools.NAMESPACE_SEPERATOR_STRING + name;
      else
         return name;
   }

   public String getDescription()
   {
      return description;
   }

   public double getLowerBound()
   {
      return lowerBound;
   }

   public double getUpperBound()
   {
      return upperBound;
   }

   @Override
   public String toString()
   {
      return "name: " + name + ", description: " + description + ", lowerBound: " + lowerBound + ", upperBound: " + upperBound;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy