Package classes

Class PedaggioFactory


  • public class PedaggioFactory
    extends java.lang.Object
    Implements the factory pattern for Pedaggio
    Author:
    gabrieleromanato
    • Constructor Summary

      Constructors 
      Constructor Description
      PedaggioFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PedaggioInterface getInstance​(java.lang.String type, double tariffaUnitaria, double arrotondamento, java.lang.String classeVeicolo, java.lang.String classeAmbientale)
      Returns an instance of a specific Pedaggio class
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PedaggioFactory

        public PedaggioFactory()
    • Method Detail

      • getInstance

        public static PedaggioInterface getInstance​(java.lang.String type,
                                                    double tariffaUnitaria,
                                                    double arrotondamento,
                                                    java.lang.String classeVeicolo,
                                                    java.lang.String classeAmbientale)
        Returns an instance of a specific Pedaggio class
        Parameters:
        type -
        tariffaUnitaria -
        arrotondamento -
        classeVeicolo -
        classeAmbientale -
        Returns:
        A Pedaggio specific instance