Class BlockDescriptor

java.lang.Object
gcodeCompiler.util.BlockDescriptor

public class BlockDescriptor
extends java.lang.Object
Block descriptor class. A block is the basic element of a G-Code file.
  • Field Details

  • Constructor Details

    • BlockDescriptor

      public BlockDescriptor​(java.lang.String num_block, InfoGeometriche infoGeo, InfoTecnologiche infoTec, InfoTecnologicheM infoTecM)
      Constructor of BlockDescriptor class.
      Parameters:
      num_block - the num block
      infoGeo - the info geo
      infoTec - the info tec
      infoTecM - the info tec M
    • BlockDescriptor

      public BlockDescriptor​(java.lang.String num_block)
      Instantiates a new block descriptor.
      Parameters:
      num_block - the num block
  • Method Details

    • getNum_block

      public java.lang.String getNum_block()
      Gets the num block.
      Returns:
      the num block
    • setNum_block

      public void setNum_block​(java.lang.String num_block)
      Sets the num block.
      Parameters:
      num_block - the new num block
    • getInfoGeo

      public InfoGeometriche getInfoGeo()
      Gets the info geo.
      Returns:
      the info geo
    • setInfoGeo

      public void setInfoGeo​(InfoGeometriche infoGeo)
      Sets the info geo.
      Parameters:
      infoGeo - the new info geo
    • getInfotTec

      public InfoTecnologiche getInfotTec()
      Gets the infot tec.
      Returns:
      the infot tec
    • setInfotTec

      public void setInfotTec​(InfoTecnologiche infotTec)
      Sets the infot tec.
      Parameters:
      infotTec - the new infot tec
    • getInfoTecM

      public InfoTecnologicheM getInfoTecM()
      Gets the info tec M.
      Returns:
      the info tec M
    • setInfoTecM

      public void setInfoTecM​(InfoTecnologicheM infoTecM)
      Sets the info tec M.
      Parameters:
      infoTecM - the new info tec M
    • toString

      public java.lang.String toString()
      This method returns the block printout informations.
      Overrides:
      toString in class java.lang.Object
      Returns:
      the string