fr.ifremer.isisfish.entities
Class VesselTypeAbstract

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaEntityAbstract
      extended by 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:
Serialized Form

Field Summary
protected  double activityRange
          Nom de l'attribut en BD : activityRange
protected  String comment
          Nom de l'attribut en BD : comment
protected  int length
          Nom de l'attribut en BD : length
protected  TimeUnit maxTripDuration
          Nom de l'attribut en BD : maxTripDuration
protected  int minCrewSize
          Taille minimum de l'équipage sur ce style de bateau
protected  String name
          Nom de l'attribut en BD : name
protected  double speed
          Nom de l'attribut en BD : speed
protected  Collection<TripType> tripType
          Nom de l'attribut en BD : tripType
protected  double unitFuelCostOfTravel
          Coût d'un heure de carburant
 
Fields inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
readListeners, readVetoables, topiaContext, topiaCreateDate, topiaId, topiaVersion, writeListeners, writeVetoables
 
Fields inherited from interface fr.ifremer.isisfish.entities.VesselType
PROPERTY_ACTIVITY_RANGE, PROPERTY_COMMENT, PROPERTY_LENGTH, PROPERTY_MAX_TRIP_DURATION, PROPERTY_MIN_CREW_SIZE, PROPERTY_NAME, PROPERTY_SPEED, PROPERTY_TRIP_TYPE, PROPERTY_UNIT_FUEL_COST_OF_TRAVEL
 
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntityContextable
TOPIA_CONTEXT
 
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
AGGREGATE, COMPOSITE, TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
 
Constructor Summary
VesselTypeAbstract()
           
 
Method Summary
 void accept(org.nuiton.topia.persistence.EntityVisitor visitor)
           
 void addAllTripType(Collection<TripType> tripType)
           
 void addTripType(TripType tripType)
           
 void clearTripType()
           
 void delete()
           
 double getActivityRange()
           
 List<org.nuiton.topia.persistence.TopiaEntity> getAggregate()
           
 String getComment()
           
 List<org.nuiton.topia.persistence.TopiaEntity> getComposite()
           
 int getLength()
           
 TimeUnit getMaxTripDuration()
           
 int getMinCrewSize()
           
 String getName()
           
 double getSpeed()
           
 Collection<TripType> getTripType()
           
 TripType getTripTypeByTopiaId(String topiaId)
           
 double getUnitFuelCostOfTravel()
           
 boolean isTripTypeEmpty()
           
 void removeTripType(TripType tripType)
           
 void setActivityRange(double activityRange)
           
 void setComment(String comment)
           
 void setLength(int length)
           
 void setMaxTripDuration(TimeUnit maxTripDuration)
           
 void setMinCrewSize(int minCrewSize)
           
 void setName(String name)
           
 void setSpeed(double speed)
           
 void setTripType(Collection<TripType> tripType)
           
 void setUnitFuelCostOfTravel(double unitFuelCostOfTravel)
           
 int sizeTripType()
           
 String toString()
           
 void update()
           
 
Methods inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, equals, fireOnPostRead, fireOnPostRead, fireOnPostWrite, fireOnPostWrite, fireOnPreRead, fireOnPreWrite, getReadPropertyChangeSupport, getReadVetoableChangeSupport, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, getWritePropertyChangeSupport, getWriteVetoableChangeSupport, hashCode, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaContext, setTopiaCreateDate, setTopiaId, setTopiaVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fr.ifremer.isisfish.entities.VesselType
getFisheryRegion
 
Methods inherited from interface org.nuiton.topia.persistence.TopiaEntityContextable
getTopiaContext, setTopiaContext
 
Methods inherited from interface org.nuiton.topia.persistence.TopiaEntity
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, getTopiaCreateDate, getTopiaId, getTopiaVersion, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion
 

Field Detail

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 Detail

VesselTypeAbstract

public VesselTypeAbstract()
Method Detail

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

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


Copyright © 1999-2012 CodeLutin. All Rights Reserved.