Package gcodeCompiler.util
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 Summary
Fields Modifier and Type Field Description private InfoGeometricheinfoGeoThe info geo.private InfoTecnologicheinfoTecThe info tec.private InfoTecnologicheMinfoTecMThe info tec M.private java.lang.Stringnum_blockThe num block. -
Constructor Summary
Constructors Constructor Description BlockDescriptor(java.lang.String num_block)Instantiates a new block descriptor.BlockDescriptor(java.lang.String num_block, InfoGeometriche infoGeo, InfoTecnologiche infoTec, InfoTecnologicheM infoTecM)Constructor of BlockDescriptor class. -
Method Summary
Modifier and Type Method Description InfoGeometrichegetInfoGeo()Gets the info geo.InfoTecnologicheMgetInfoTecM()Gets the info tec M.InfoTecnologichegetInfotTec()Gets the infot tec.java.lang.StringgetNum_block()Gets the num block.voidsetInfoGeo(InfoGeometriche infoGeo)Sets the info geo.voidsetInfoTecM(InfoTecnologicheM infoTecM)Sets the info tec M.voidsetInfotTec(InfoTecnologiche infotTec)Sets the infot tec.voidsetNum_block(java.lang.String num_block)Sets the num block.java.lang.StringtoString()This method returns the block printout informations.
-
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 blockinfoGeo- the info geoinfoTec- the info tecinfoTecM- 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
Gets the info geo.- Returns:
- the info geo
-
setInfoGeo
Sets the info geo.- Parameters:
infoGeo- the new info geo
-
getInfotTec
Gets the infot tec.- Returns:
- the infot tec
-
setInfotTec
Sets the infot tec.- Parameters:
infotTec- the new infot tec
-
getInfoTecM
Gets the info tec M.- Returns:
- the info tec M
-
setInfoTecM
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:
toStringin classjava.lang.Object- Returns:
- the string
-