Skip to content

Commit

Permalink
IHandlingUnitsBL.isTransportUnitOrAggregate
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed May 13, 2017
1 parent 87cab47 commit 9b4c3ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ public interface IHandlingUnitsBL extends ISingletonService
*/
boolean isTransportUnitOrVirtual(I_M_HU hu);

/**
* @return true if the HU is a TU or an aggregated TU
*/
boolean isTransportUnitOrAggregate(I_M_HU hu);

/**
* Checks if given handling unit is top level (i.e. it has no parents)
*
Expand Down Expand Up @@ -409,5 +414,4 @@ public interface IHandlingUnitsBL extends ISingletonService
* @return
*/
I_M_HU_PI getEffectivePI(I_M_HU hu);

}
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,12 @@ public void assertLoadingUnit(final I_M_HU hu)
throw new HUException("HU " + getDisplayName(hu) + " shall be a Loading Unit(LU) but it is '" + huUnitTypeStr + "'");
}

@Override
public boolean isTransportUnitOrAggregate(final I_M_HU hu)
{
return isAggregateHU(hu) || isTransportUnit(hu);
}

@Override
public boolean isTransportUnit(final I_M_HU hu)
{
Expand Down

0 comments on commit 9b4c3ba

Please sign in to comment.