Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2012.03.23 at 06:29:13 PM CET 
  //
  
  
  package nl.cloudfarming.client.isobus.model;
 
Type: Coding data Description: The DeviceValuePresentation XML element is used to specify the presentation of the data dictionary entity-defined integer values that are used within a single device. The presentation shall be according to the following formula: Presented value = (integer value + Offset) * Scale Presented values are always rounded to the number of decimals specified in the NumberOfDecimals attribute. Referenced by XML elements: - DeviceProcessData - DeviceProperty Included by XML elements: - Device
 
 @XmlType(name = "")
 @XmlRootElement(name = "DVP")
 public class DeviceValuePresentation {
 
     @XmlAttribute(name = "A", required = true)
     protected int id;
     @XmlAttribute(name = "B", required = true)
     protected int offset;
     @XmlAttribute(name = "C", required = true)
     protected float scale;
     @XmlAttribute(name = "D", required = true)
     protected short numberOfDecimals;
     @XmlAttribute(name = "E")
     protected String unitDesignator;

    
Gets the value of the id property. Unique number inside a single device
 
     public int getId() {
         return ;
     }

    
Sets the value of the id property.
 
     public void setId(int value) {
         this. = value;
     }

    
Gets the value of the offset property. Offset to be applied to the value for presentation
 
     public int getOffset() {
         return ;
     }

    
Sets the value of the offset property.
 
     public void setOffset(int value) {
         this. = value;
     }

    
Gets the value of the scale property. Scale to be applied to the value for presentation
    public float getScale() {
        return ;
    }

    
Sets the value of the scale property.
    public void setScale(float value) {
        this. = value;
    }

    
Gets the value of the numberOfDecimals property. Number of decimals to be presented after the decimal separator
    public short getNumberOfDecimals() {
        return ;
    }

    
Sets the value of the numberOfDecimals property.
    public void setNumberOfDecimals(short value) {
        this. = value;
    }

    
Gets the value of the unitDesignator property. Optional unit designator string

Returns:
possible object is
    public String getUnitDesignator() {
        return ;
    }

    
Sets the value of the unitDesignator property.

Parameters:
value allowed object is
    public void setUnitDesignator(String value) {
        this. = value;
    }
New to GrepCode? Check out our FAQ X