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 InfoGeometriche
infoGeo
The info geo.private InfoTecnologiche
infoTec
The info tec.private InfoTecnologicheM
infoTecM
The info tec M.private java.lang.String
num_block
The 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 InfoGeometriche
getInfoGeo()
Gets the info geo.InfoTecnologicheM
getInfoTecM()
Gets the info tec M.InfoTecnologiche
getInfotTec()
Gets the infot tec.java.lang.String
getNum_block()
Gets the num block.void
setInfoGeo(InfoGeometriche infoGeo)
Sets the info geo.void
setInfoTecM(InfoTecnologicheM infoTecM)
Sets the info tec M.void
setInfotTec(InfoTecnologiche infotTec)
Sets the infot tec.void
setNum_block(java.lang.String num_block)
Sets the num block.java.lang.String
toString()
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:
toString
in classjava.lang.Object
- Returns:
- the string
-