Class ChassisPlacement


  • public class ChassisPlacement
    extends Object
    Information about object placement
    • Constructor Detail

      • ChassisPlacement

        public ChassisPlacement()
        Default constructor
      • ChassisPlacement

        public ChassisPlacement​(UUID image,
                                int height,
                                int heightUnits,
                                int width,
                                int widthUnits,
                                int positionHeight,
                                int positionHeightUnits,
                                int positionWidth,
                                int positionWidthUnits,
                                int oritentaiton)
        Constructor
    • Method Detail

      • createFromXml

        public static ChassisPlacement createFromXml​(String xml)
                                              throws Exception
        Create DCI list object from XML document
        Parameters:
        xml - XML document
        Returns:
        deserialized object
        Throws:
        Exception - if the object cannot be fully deserialized
      • createXml

        public String createXml()
                         throws Exception
        Create XML from configuration.
        Returns:
        XML document
        Throws:
        Exception - if the schema for the object is not valid
      • getImage

        public UUID getImage()
        Returns image that will be used to display this element on chassis
        Returns:
        image UUID
      • getHeight

        public int getHeight()
        Returns:
        the height
      • getHeightUnits

        public int getHeightUnits()
        Returns:
        the heightUnits
      • getWidth

        public int getWidth()
        Returns:
        the width
      • getWidthUnits

        public int getWidthUnits()
        Returns:
        the widthUnits
      • getPositionHeight

        public int getPositionHeight()
        Returns:
        the positionHeight
      • getPositionHeightUnits

        public int getPositionHeightUnits()
        Returns:
        the positionHeightUnits
      • getPositionWidth

        public int getPositionWidth()
        Returns:
        the positionWidth
      • getPositionWidthUnits

        public int getPositionWidthUnits()
        Returns:
        the positionWidthUnits
      • getOritentaiton

        public int getOritentaiton()
        Returns:
        the oritentaiton
      • getPositionHeightInMm

        public double getPositionHeightInMm()
        Get unit position height in mm
        Returns:
        position height in mm
      • getPositionWidthInMm

        public double getPositionWidthInMm()
        Get unit position width in mm
        Returns:
        position width in mm
      • getHeightInMm

        public double getHeightInMm()
        Get unit height in mm
        Returns:
        unit height in mm
      • getWidthInMm

        public double getWidthInMm()
        Get unit unit in mm
        Returns:
        unit height in mm