berth
Class LiftingArm

java.lang.Object
  extended byberth.LiftingArm

public class LiftingArm
extends java.lang.Object

Class for incapsulate the attributes related to a LiftingArm Creates a LiftingArm with related attributes The Bid is made when a Berth agent reads data from its beliefset

See Also:
Berth

Constructor Summary
LiftingArm(java.lang.String liftingArmId)
          Constructor for LiftingArm Set the liftingArmId and make a new productList
 
Method Summary
 void addProduct(java.lang.String product)
          Method that add a new product to this LiftingArms productList
 int getCapacity()
          Get-method for the capacity
 java.lang.String getLiftingArmId()
          Get-method for the liftingArmId
 java.util.ArrayList getProductList()
          Get-method for the productList
 boolean hasProduct(java.lang.String product)
          Method to check wether this LiftingArm has a specific product
 void setCapacity(int capacity)
          Set-method for the capacity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiftingArm

public LiftingArm(java.lang.String liftingArmId)
Constructor for LiftingArm Set the liftingArmId and make a new productList

Method Detail

getLiftingArmId

public java.lang.String getLiftingArmId()
Get-method for the liftingArmId

Returns:
String

addProduct

public void addProduct(java.lang.String product)
Method that add a new product to this LiftingArms productList


getProductList

public java.util.ArrayList getProductList()
Get-method for the productList

Returns:
ArrayList

setCapacity

public void setCapacity(int capacity)
Set-method for the capacity


getCapacity

public int getCapacity()
Get-method for the capacity

Returns:
int

hasProduct

public boolean hasProduct(java.lang.String product)
Method to check wether this LiftingArm has a specific product

Returns:
boolean