View Javadoc
1   package org.opentrafficsim.water.transfer;
2   
3   public class TerminalPortTax {
4   
5   
6   	private double feePortPerFullMove;
7   	private double feePortPerEmptyMove;
8   	private double feePortPerShipDWT;
9   	private String feeStrategy;
10  	private boolean usePortFeePerFullMove;
11  	private boolean usePortFeePerEmptyMove;
12  	private boolean usePortFeePerShipDWT;
13  	
14  	
15  	public TerminalPortTax(double feePortPerFullMove, double feePortPerEmptyMove, double feePortPerDWT, String feeStrategy) {
16  		
17  		this.feePortPerFullMove = feePortPerFullMove;
18  		this.feePortPerEmptyMove =feePortPerEmptyMove;
19  		this.feePortPerShipDWT=feePortPerDWT;
20  		this.feeStrategy=feeStrategy;
21  		
22          if ("F".equals(feeStrategy)) 
23          {
24              this.usePortFeePerFullMove=true;
25              this.usePortFeePerEmptyMove=false;
26              this.usePortFeePerShipDWT=false;
27              
28          }
29          if ("A".equals(feeStrategy)) 
30          {
31          	this.usePortFeePerFullMove=true;
32          	this.usePortFeePerEmptyMove=true;
33          	this.usePortFeePerShipDWT=false;
34  
35          }
36          if ("S".equals(feeStrategy)) 
37          {
38          	this.usePortFeePerFullMove=false;
39          	this.usePortFeePerEmptyMove=false;
40          	this.usePortFeePerShipDWT=true;
41  
42          }
43  	}
44  	
45  
46  	 
47      public double getFeePortPerShipDWT()
48      {
49   
50  		return feePortPerShipDWT;
51      }
52  
53      public double getFeePortPerFullMove()
54      {
55          return feePortPerFullMove;
56      }
57  
58      public double getFeePortPerEmptyMove()
59      {
60          return feePortPerEmptyMove;
61      }
62  
63      public boolean isUsePortFeePerEmptyMove()
64      {
65          return usePortFeePerEmptyMove;
66      }
67  
68      public boolean isUsePortFeePerFullMove()
69      {
70          return usePortFeePerFullMove;
71      }
72  
73      public boolean isUsePortFeePerShipDWT()
74      {
75          return usePortFeePerShipDWT;
76      }
77  
78      public String getFeeStrategy() {
79  		return feeStrategy;
80  	}
81  }