/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package inport; /** * * @author topazh_ag */ public class MovingObjectState { private MovingObject vessel; private Berth location; /** * Get the value of location * * @return the value of location */ public Berth getLocation() { return location; } /** * Set the value of location * * @param location new value of location */ public void setLocation(Berth location) { this.location = location; } /** * Get the value of vessel * * @return the value of vessel */ public MovingObject getVessel() { return vessel; } /** * Set the value of vessel * * @param vessel new value of vessel */ public void setVessel(MovingObject vessel) { this.vessel = vessel; } /** * * @param vessel * @param location */ public MovingObjectState(MovingObject vessel, Berth location) { this.vessel = vessel; this.location = location; } public MovingObjectState() { } @Override public String toString() { return getVessel().getId() + ";" + getLocation().getId(); } }