Package org.openwms.common.location.api
Class LocationGroupVO
java.lang.Object
org.springframework.hateoas.RepresentationModel<LocationGroupVO>
org.openwms.common.location.api.LocationGroupVO
- All Implemented Interfaces:
Serializable,TargetVO
public class LocationGroupVO
extends org.springframework.hateoas.RepresentationModel<LocationGroupVO>
implements TargetVO, Serializable
A LocationGroupVO represents a
LocationGroup.- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringTheLocationGroupmight be assigned to anAccount.private List<LocationGroupVO> ChildLocationGroups.private LocalDateTimeTimestamp when theLocationGrouphas been created.private StringDescription of theLocationGroup.private LocationGroupStateInfeed state, controlled by the subsystem only.private LocationGroupStateOutfeed state.private StringA type can be assigned to aLocationGroup.private @NotBlank StringUnique identifier of theLocationGroup.private @NotBlank(groups=Create.class) StringThe operation mode is controlled by the subsystem and defines the physical mode aLocationGroupis currently able to operate in.private StringParentLocationGroup.private StringThe persistent technical key of theLocationGroup. -
Constructor Summary
ConstructorsConstructorDescriptionLocationGroupVO(String name) LocationGroupVO(String name, LocationGroupState groupStateIn, LocationGroupState groupStateOut) -
Method Summary
Modifier and TypeMethodDescriptionaddChild(LocationGroupVO child) Returns a string representation of the LocationGroupVO object, including all its fields.asString()Returns the unique business key of the Target.static LocationGroupVOCreates a new LocationGroupVO object with the given name and operation mode.booleanAll fields.getName()getpKey()Get the persistent key.inthashCode()All fields.booleanCheck whether the LocationGroup has a parent.booleanChecks whether the LocationGroup is available for infeed.booleanChecks whether the LocationGroup is blocked for infeed.booleanChecks whether the LocationGroup is available for outfeed.voidsetAccountId(String accountId) voidsetChildren(List<LocationGroupVO> children) voidsetCreateDt(LocalDateTime createDt) voidsetDescription(String description) voidsetGroupStateIn(LocationGroupState groupStateIn) voidsetGroupStateOut(LocationGroupState groupStateOut) voidsetGroupType(String groupType) voidsetIncomingActive(boolean incomingActive) Set the infeed mode.voidvoidsetOperationMode(String operationMode) voidsetOutgoingActive(boolean outgoingActive) Set the outfeed mode.voidvoidtoString()Only the name.Methods inherited from class org.springframework.hateoas.RepresentationModel
add, add, add, addAllIf, addIf, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, of, of, removeLinks
-
Field Details
-
pKey
The persistent technical key of theLocationGroup. -
name
Unique identifier of theLocationGroup. -
accountId
TheLocationGroupmight be assigned to anAccount. -
description
Description of theLocationGroup. -
groupType
A type can be assigned to aLocationGroup. -
parent
ParentLocationGroup. -
operationMode
The operation mode is controlled by the subsystem and defines the physical mode aLocationGroupis currently able to operate in. -
groupStateIn
Infeed state, controlled by the subsystem only. -
groupStateOut
Outfeed state. -
children
ChildLocationGroups. -
createDt
Timestamp when theLocationGrouphas been created.
-
-
Constructor Details
-
LocationGroupVO
public LocationGroupVO() -
LocationGroupVO
-
LocationGroupVO
public LocationGroupVO(String name, LocationGroupState groupStateIn, LocationGroupState groupStateOut)
-
-
Method Details
-
create
Creates a new LocationGroupVO object with the given name and operation mode.- Parameters:
name- The name of the location group.operationMode- The operation mode of the location group.- Returns:
- The created LocationGroupVO object.
-
streamLocationGroups
-
hasParent
public boolean hasParent()Check whether the LocationGroup has a parent.- Returns:
- true if it has a parent, otherwise false
-
isInfeedBlocked
public boolean isInfeedBlocked()Checks whether the LocationGroup is blocked for infeed.- Returns:
- true if blocked, otherwise false
-
isIncomingActive
public boolean isIncomingActive()Checks whether the LocationGroup is available for infeed.- Returns:
- true if available, otherwise false
-
setIncomingActive
public void setIncomingActive(boolean incomingActive) Set the infeed mode.- Parameters:
incomingActive- true if available for infeed otherwise false
-
setGroupStateIn
-
isOutgoingActive
public boolean isOutgoingActive()Checks whether the LocationGroup is available for outfeed.- Returns:
- true if available, otherwise false
-
setOutgoingActive
public void setOutgoingActive(boolean outgoingActive) Set the outfeed mode.- Parameters:
outgoingActive- true if available for outfeed otherwise false
-
setGroupStateOut
-
getOperationMode
-
setOperationMode
-
getGroupStateIn
-
getGroupStateOut
-
getpKey
Description copied from interface:TargetVOGet the persistent key. -
setpKey
-
getName
-
setName
-
getAccountId
-
setAccountId
-
getDescription
-
setDescription
-
getGroupType
-
setGroupType
-
getParent
-
setParent
-
getChildren
-
addChild
-
setChildren
-
getCreateDt
-
setCreateDt
-
asString
Returns the unique business key of the Target. -
equals
All fields.- Overrides:
equalsin classorg.springframework.hateoas.RepresentationModel<LocationGroupVO>
-
hashCode
public int hashCode()All fields.- Overrides:
hashCodein classorg.springframework.hateoas.RepresentationModel<LocationGroupVO>
-
toString
Only the name.- Overrides:
toStringin classorg.springframework.hateoas.RepresentationModel<LocationGroupVO>
-
allFieldsToString
Returns a string representation of the LocationGroupVO object, including all its fields. Fields are concatenated using a delimiter ", ".- Returns:
- A string representation of the LocationGroupVO object.
-