59 lines
1.0 KiB
Java
59 lines
1.0 KiB
Java
package seabedexplorer.submersible;
|
|
|
|
import java.util.ArrayList;
|
|
import seabedexplorer.submersible.state.states.DockedState;
|
|
|
|
/**
|
|
* AUV (Automated Underwater Vehicle) (A type of submersible)
|
|
*
|
|
* @author JLScott1999
|
|
*/
|
|
public final class AUV extends Submersible
|
|
{
|
|
|
|
private static final String TYPE = "AUV (Automated Underwater Vehicle)";
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public AUV()
|
|
{
|
|
super(new ArrayList<>());
|
|
changeState(new DockedState());
|
|
}
|
|
|
|
/**
|
|
* Returns this object
|
|
* @return <i>Submersible</i> object
|
|
*/
|
|
@Override
|
|
public Submersible getSubmersible()
|
|
{
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public void collectData()
|
|
{
|
|
|
|
}
|
|
|
|
@Override
|
|
public boolean update(String cmd) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public String getSubmersibleType()
|
|
{
|
|
return TYPE;
|
|
}
|
|
|
|
@Override
|
|
public String toString()
|
|
{
|
|
return "Type: " + TYPE + "\n" + super.toString();
|
|
}
|
|
|
|
}
|