|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.domain.AbstractEntity
org.openwms.common.domain.TypePlacingRule
public class TypePlacingRule
A TypePlacingRule is a Rule
that defines which types of
TransportUnit
s (TransportUnitType
s) can be put on
which type of Location
(LocationType
).
A privilegeLevel is defined to order a list of allowed
LocationType
s.
TransportUnitType
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.openwms.core.domain.AbstractEntity |
---|
AbstractEntity.AbstractEntityListener |
Field Summary |
---|
Fields inherited from class org.openwms.core.domain.AbstractEntity |
---|
FIND_ALL, FIND_BY_ID |
Constructor Summary | |
---|---|
TypePlacingRule(TransportUnitType transportUnitType,
LocationType allowedLocationType)
Create a new TypePlacingRule with allowedLocationType. |
|
TypePlacingRule(TransportUnitType transportUnitType,
LocationType allowedLocationType,
int privilegeLevel)
Create a new TypePlacingRule with privilegeLevel and
allowedLocationType. |
Method Summary | |
---|---|
LocationType |
getAllowedLocationType()
Get the allowedLocationType. |
Long |
getId()
Return the technical key value. |
int |
getPrivilegeLevel()
Get the privilegeLevel. |
TransportUnitType |
getTransportUnitType()
Get the transportUnitType. |
long |
getVersion()
Return the value of the optimistic locking field. |
boolean |
isNew()
Check whether the instance is a transient or persisted one. |
void |
setPrivilegeLevel(int privilegeLevel)
Set the privilegeLevel. |
Methods inherited from class org.openwms.core.domain.AbstractEntity |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypePlacingRule(TransportUnitType transportUnitType, LocationType allowedLocationType, int privilegeLevel)
TypePlacingRule
with privilegeLevel and
allowedLocationType.
transportUnitType
- The TransportUnitType
for this ruleallowedLocationType
- The allowed LocationType
privilegeLevel
- The privilege levelpublic TypePlacingRule(TransportUnitType transportUnitType, LocationType allowedLocationType)
TypePlacingRule
with allowedLocationType.
transportUnitType
- The TransportUnitType
for this ruleallowedLocationType
- The allowed LocationType
Method Detail |
---|
public Long getId()
getId
in interface DomainObject<Long>
public boolean isNew()
isNew
in interface DomainObject<Long>
true
if transient (not persisted before), otherwise
false
public TransportUnitType getTransportUnitType()
public int getPrivilegeLevel()
public void setPrivilegeLevel(int privilegeLevel)
privilegeLevel
- The level to setpublic LocationType getAllowedLocationType()
public long getVersion()
getVersion
in interface DomainObject<Long>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |