Package classes
Class PedaggioFactory
- java.lang.Object
-
- classes.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
-
-
-
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
-
-