com.ltu.smd116.containers.booking
Class ServiceContainer

com.ltu.smd116.misc.SortableItem
  |
  +--com.ltu.smd116.containers.SortableContainer
        |
        +--com.ltu.smd116.containers.booking.ServiceContainer

public class ServiceContainer
extends SortableContainer

Contains all info on a Service

Stereotype container

Field Summary
 private Stringdescription
           
 private intduration
           
 private DateendDate
           
 private intgranularity
           
 private Stringname
           
 private SortedVectorresources
          A Sorted vector with resourceContainers
 private SortedVectorserviceManagers
          Sorted vector of PersonnelContainer.
 private SortedVectorserviceTypes
          Sorted vector of servicetypeContainers
 private DatestartDate
           

Constructor Summary
ServiceContainer()
           

Method Summary
 StringgetDescription()
           
 intgetDuration()
           
 DategetEndDate()
           
 intgetGranularity()
           
 StringgetName()
           
 SortedVectorgetResources()
           
 SortedVectorgetServiceManagers()
           
 SortedVectorgetServiceTypes()
           
 DategetStartDate()
           
 voidsetDescription(String description)
           
 voidsetDuration(int duration)
           
 voidsetEndDate(Date endDate)
           
 voidsetGranularity(int granularity)
           
 voidsetName(String name)
           
 voidsetResources(SortedVector resources)
           
 voidsetServiceManagers(SortedVector serviceManagers)
           
 voidsetServiceTypes(SortedVector serviceTypes)
           
 voidsetStartDate(Date startDate)
           

Methods inherited from class com.ltu.smd116.containers.SortableContainer
compare, getElement, getId, setId

Field Detail

description

private String description

duration

private int duration

endDate

private Date endDate

granularity

private int granularity

name

private String name

resources

private SortedVector resources
A Sorted vector with resourceContainers
associates <{ResourceContainer}>

serviceManagers

private SortedVector serviceManagers
Sorted vector of PersonnelContainer. The personell that are responsible for that service
associates <{PersonnelContainer}>

serviceTypes

private SortedVector serviceTypes
Sorted vector of servicetypeContainers
associates <{ServiceTypeContainer}>

startDate

private Date startDate
Constructor Detail

ServiceContainer

public ServiceContainer()
Method Detail

getDescription

public String getDescription()

getDuration

public int getDuration()

getEndDate

public Date getEndDate()

getGranularity

public int getGranularity()

getName

public String getName()

getResources

public SortedVector getResources()

getServiceManagers

public SortedVector getServiceManagers()

getServiceTypes

public SortedVector getServiceTypes()

getStartDate

public Date getStartDate()

setDescription

public void setDescription(String description)

setDuration

public void setDuration(int duration)

setEndDate

public void setEndDate(Date endDate)

setGranularity

public void setGranularity(int granularity)

setName

public void setName(String name)

setResources

public void setResources(SortedVector resources)

setServiceManagers

public void setServiceManagers(SortedVector serviceManagers)

setServiceTypes

public void setServiceTypes(SortedVector serviceTypes)

setStartDate

public void setStartDate(Date startDate)

Association Links

to Class java.lang.String

to Class com.ltu.smd116.containers.booking.ResourceContainer

A Sorted vector with resourceContainers

associates <{ResourceContainer}>

to Class java.lang.String

to Class java.util.Date

to Class java.util.Date