public abstract class ProductConfigSpec extends Object implements ProductStructureFilter, Serializable
PartMaster
s
the right PartIteration
according to specific rules.
It also selects from a complete PartLink
path the one
which has to be considered (itself or a variant).
ProductConfigSpec is a restrictive type of ProductStructureFilter
.Constructor and Description |
---|
ProductConfigSpec() |
Modifier and Type | Method and Description |
---|---|
List<PartLink> |
filter(List<PartLink> path)
From a given
PartLink selects one or many
effective links to consider. |
List<PartIteration> |
filter(PartMaster partMaster)
Selects the retained iteration(s) of the specified
PartMaster . |
abstract PartIteration |
filterPartIteration(PartMaster partMaster) |
abstract PartLink |
filterPartLink(List<PartLink> path) |
public final List<PartLink> filter(List<PartLink> path)
ProductStructureFilter
PartLink
selects one or many
effective links to consider. It should be noticed that the link is
supplied into the form of a complete path whereas the selected
links are returned individually.
A frequent implementation is to return the PartLink
itself,
hence the latest item of the list.filter
in interface ProductStructureFilter
path
- the path to the part link to filter into the form of an ordered
list of PartLink
s from the root of the structure
to the PartLink
itself.public final List<PartIteration> filter(PartMaster partMaster)
ProductStructureFilter
PartMaster
.filter
in interface ProductStructureFilter
partMaster
- the part to filterpublic abstract PartIteration filterPartIteration(PartMaster partMaster)
Copyright © 2017 DocDoku. All rights reserved.