de.unirostock.Builder.example
Class Ship

java.lang.Object
  extended by de.unirostock.Builder.example.Ship
Direct Known Subclasses:
Oiltanker, OiltankerToy

public abstract class Ship
extends java.lang.Object


Constructor Summary
Ship()
           
 
Method Summary
 java.lang.String getMaterialType()
           
 float getPower()
           
protected  void setEngine(Engine engine)
           
protected  void setHull(Hull hull)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ship

public Ship()
Method Detail

setEngine

protected void setEngine(Engine engine)
Parameters:
engine - The engine to set.

setHull

protected void setHull(Hull hull)
Parameters:
hull - The hull to set.

getMaterialType

public java.lang.String getMaterialType()
Returns:
Returns the material.

getPower

public float getPower()
Returns:
Returns the power.