Package application

Class Printer

java.lang.Object
application.Printer

public class Printer extends Object
Represents a 3D printer with its attributes.
  • Constructor Details

    • Printer

      public Printer(String nickname, double powerConsumption, double printTimePerUnit, double nozzleSize, int bedCapacity)
      Constructor for creating a printer object.
  • Method Details

    • getNickname

      public String getNickname()
    • getPowerConsumption

      public double getPowerConsumption()
    • getPrintTimePerUnit

      public double getPrintTimePerUnit()
    • getNozzleSize

      public double getNozzleSize()
    • getBedCapacity

      public int getBedCapacity()
    • toString

      public String toString()
      Returns a formatted string representing the printer's attributes.
      Overrides:
      toString in class Object