Class VesselTypeAbstract

java.lang.Object
org.nuiton.topia.persistence.TopiaEntityAbstract
fr.ifremer.isisfish.entities.VesselTypeAbstract
All Implemented Interfaces:
VesselType, Serializable, org.nuiton.topia.persistence.TopiaEntity, org.nuiton.topia.persistence.TopiaEntityContextable
Direct Known Subclasses:
VesselTypeImpl

public abstract class VesselTypeAbstract extends org.nuiton.topia.persistence.TopiaEntityAbstract implements VesselType
See Also:
  • Field Details

    • name

      protected String name
      Nom de l'attribut en BD : name
    • length

      protected int length
      Nom de l'attribut en BD : length
    • speed

      protected double speed
      Nom de l'attribut en BD : speed
    • maxTripDuration

      protected TimeUnit maxTripDuration
      Nom de l'attribut en BD : maxTripDuration
    • activityRange

      protected double activityRange
      Nom de l'attribut en BD : activityRange
    • minCrewSize

      protected int minCrewSize

      Taille minimum de l'équipage sur ce style de bateau

      Nom de l'attribut en BD : minCrewSize
    • unitFuelCostOfTravel

      protected double unitFuelCostOfTravel

      Coût d'un heure de carburant

      Nom de l'attribut en BD : unitFuelCostOfTravel
    • comment

      protected String comment
      Nom de l'attribut en BD : comment
    • tripType

      protected Collection<TripType> tripType
      Nom de l'attribut en BD : tripType
  • Constructor Details

    • VesselTypeAbstract

      public VesselTypeAbstract()
  • Method Details

    • update

      public void update() throws org.nuiton.topia.TopiaException
      Specified by:
      update in interface org.nuiton.topia.persistence.TopiaEntityContextable
      Throws:
      org.nuiton.topia.TopiaException
    • delete

      public void delete() throws org.nuiton.topia.TopiaException
      Specified by:
      delete in interface org.nuiton.topia.persistence.TopiaEntityContextable
      Throws:
      org.nuiton.topia.TopiaException
    • accept

      public void accept(org.nuiton.topia.persistence.EntityVisitor visitor) throws org.nuiton.topia.TopiaException
      Specified by:
      accept in interface org.nuiton.topia.persistence.TopiaEntity
      Throws:
      org.nuiton.topia.TopiaException
    • accept0

      protected void accept0(org.nuiton.topia.persistence.EntityVisitor visitor) throws org.nuiton.topia.TopiaException
      Throws:
      org.nuiton.topia.TopiaException
    • setName

      public void setName(String name)
      Specified by:
      setName in interface VesselType
    • getName

      public String getName()
      Specified by:
      getName in interface VesselType
    • setLength

      public void setLength(int length)
      Specified by:
      setLength in interface VesselType
    • getLength

      public int getLength()
      Specified by:
      getLength in interface VesselType
    • setSpeed

      public void setSpeed(double speed)
      Specified by:
      setSpeed in interface VesselType
    • getSpeed

      public double getSpeed()
      Specified by:
      getSpeed in interface VesselType
    • setMaxTripDuration

      public void setMaxTripDuration(TimeUnit maxTripDuration)
      Specified by:
      setMaxTripDuration in interface VesselType
    • getMaxTripDuration

      public TimeUnit getMaxTripDuration()
      Specified by:
      getMaxTripDuration in interface VesselType
    • setActivityRange

      public void setActivityRange(double activityRange)
      Specified by:
      setActivityRange in interface VesselType
    • getActivityRange

      public double getActivityRange()
      Specified by:
      getActivityRange in interface VesselType
    • setMinCrewSize

      public void setMinCrewSize(int minCrewSize)
      Specified by:
      setMinCrewSize in interface VesselType
    • getMinCrewSize

      public int getMinCrewSize()
      Specified by:
      getMinCrewSize in interface VesselType
    • setUnitFuelCostOfTravel

      public void setUnitFuelCostOfTravel(double unitFuelCostOfTravel)
      Specified by:
      setUnitFuelCostOfTravel in interface VesselType
    • getUnitFuelCostOfTravel

      public double getUnitFuelCostOfTravel()
      Specified by:
      getUnitFuelCostOfTravel in interface VesselType
    • setComment

      public void setComment(String comment)
      Specified by:
      setComment in interface VesselType
    • getComment

      public String getComment()
      Specified by:
      getComment in interface VesselType
    • addTripType

      public void addTripType(TripType tripType)
      Specified by:
      addTripType in interface VesselType
    • addAllTripType

      public void addAllTripType(Collection<TripType> tripType)
      Specified by:
      addAllTripType in interface VesselType
    • setTripType

      public void setTripType(Collection<TripType> tripType)
      Specified by:
      setTripType in interface VesselType
    • removeTripType

      public void removeTripType(TripType tripType)
      Specified by:
      removeTripType in interface VesselType
    • clearTripType

      public void clearTripType()
      Specified by:
      clearTripType in interface VesselType
    • getTripType

      public Collection<TripType> getTripType()
      Specified by:
      getTripType in interface VesselType
    • getTripTypeByTopiaId

      public TripType getTripTypeByTopiaId(String topiaId)
      Specified by:
      getTripTypeByTopiaId in interface VesselType
    • sizeTripType

      public int sizeTripType()
      Specified by:
      sizeTripType in interface VesselType
    • isTripTypeEmpty

      public boolean isTripTypeEmpty()
      Specified by:
      isTripTypeEmpty in interface VesselType
    • getAggregate

      public List<org.nuiton.topia.persistence.TopiaEntity> getAggregate() throws org.nuiton.topia.TopiaException
      Specified by:
      getAggregate in interface org.nuiton.topia.persistence.TopiaEntity
      Overrides:
      getAggregate in class org.nuiton.topia.persistence.TopiaEntityAbstract
      Throws:
      org.nuiton.topia.TopiaException
    • getComposite

      public List<org.nuiton.topia.persistence.TopiaEntity> getComposite() throws org.nuiton.topia.TopiaException
      Specified by:
      getComposite in interface org.nuiton.topia.persistence.TopiaEntity
      Overrides:
      getComposite in class org.nuiton.topia.persistence.TopiaEntityAbstract
      Throws:
      org.nuiton.topia.TopiaException
    • toString

      public String toString()
      Overrides:
      toString in class Object