public FilledContainer(String name,String containerType, String baseType , HashMap<String, Double> liquids, double... parameters ) {
		
		this.parameters = parameters;
		this.name = name;
		this.containerType = containerType;
		this.baseType = baseType;		
		
		if( containerType.equalsIgnoreCase("straitght") ) {
			
			if ( baseType.equalsIgnoreCase("square")  ) {
				
				this.container = new SquareStraightContainer(parameters[0]);
				
			}
			if ( baseType.equalsIgnoreCase("rectangle")  ) {
				
				this.container = new RectangleStraightContainer(parameters[0],parameters[1]);
				
			}
			if ( baseType.equalsIgnoreCase("trapezoid")  ) {

				this.container = new TrapezoidStraightContainer(parameters[0], parameters[1], parameters[2]);
				
			}
			
			if ( baseType.equalsIgnoreCase("hexagon")  ) {

				this.container = new HexagonStraightContainer(parameters[0]);
				
			}
			
			if ( baseType.equalsIgnoreCase("circle")  ) {

				this.container = new CircleStraightContainer(parameters[0]);
				
			}
			
			if ( baseType.equalsIgnoreCase("ellipse")  ) {

				this.container = new EllipseStraightContainer(parameters[0], parameters[1] );
				
			}
		}
		
		
		
		this.liquid = new Liquid( name, liquids, container.getVolume() );
		
	}