Package wt.part
Class WTPartUsageLink
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.fc._ObjectToObjectLink
- All Implemented Interfaces:
com.ptc.core.meta.type.mgmt.server.impl.association._AssociationConstrainable,com.ptc.core.meta.type.mgmt.server.impl.association.AssociationConstrainable,Externalizable,Serializable,AssociativeUsageLink,wt.build._BuildableLink,wt.build._BuildableObject,wt.build.BuildableLink,wt.build.BuildableObject,_TraceableLink,TraceableLink,wt.eff._CalculatedEffRecordable,wt.eff._EffRecordable,CalculatedEffRecordable,EffRecordable,wt.esi._Releasable,Releasable,wt.fc._BinaryLink,wt.fc._Link,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,wt.fc.archive._Archiveable,wt.fc.archive.Archiveable,BinaryLink,Link,NetFactor,ObjectMappable,Persistable,wt.federation._FederatedLinkHolder,wt.federation._RemotelyLinkable,wt.federation.FederatedLinkHolder,wt.federation.RemotelyLinkable,_Filterable,Filterable,wt.generic._GenericizableLink,wt.generic._GenericizableUsageLink,wt.generic.GenericizableLink,wt.generic.GenericizableUsageLink,wt.iba.value._IBAHolder,wt.iba.value.IBAHolder,DisplayIdentification,wt.mpm.coupling._CouplingMappable,wt.mpm.coupling.CouplingMappable,_OccurrenceableLink,OccurrenceableLink,wt.option._ChoiceMappable,wt.option._Expressionable,wt.option._ExpressionAssignable,wt.option._IndependentExpressionAssignable,ChoiceMappable,Expressionable,ExpressionAssignable,wt.option.IndependentExpressionAssignable,wt.part._WTPartUsageLinkTypeInterface,wt.part.WTPartUsageLinkTypeInterface,wt.type._Typed,wt.type._TypeManaged,wt.type.FlexTyped,wt.type.Typed,wt.type.TypeManaged,wt.ufid._Federatable,wt.ufid.Federatable
@GenAsBinaryLink(superClass=IteratedUsageLink.class,interfaces={wt.build.BuildableLink.class,OccurrenceableLink.class,wt.fc.archive.Archiveable.class,wt.type.Typed.class,TraceableLink.class,wt.generic.GenericizableUsageLink.class,com.ptc.core.meta.type.mgmt.server.impl.association.AssociationConstrainable.class,CalculatedEffRecordable.class,wt.part.WTPartUsageLinkTypeInterface.class,AssociativeUsageLink.class,wt.mpm.coupling.CouplingMappable.class,wt.option.IndependentExpressionAssignable.class,Releasable.class},versions={-5258375536568013444L,-3904633429282997199L,-3904633429282997199L},properties={@GeneratedProperty(name="findNumber",type=java.lang.String.class),@GeneratedProperty(name="cadSynchronized",type=SyncedWithCADStatus.class,initialValue="SyncedWithCADStatus.getSyncedWithCADStatusDefault()",supportedAPI=PUBLIC,columnProperties=@ColumnProperties(defaultValue="no")),@GeneratedProperty(name="quantity",type=Quantity.class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(required=true)),@GeneratedProperty(name="lineNumber",type=LineNumber.class,supportedAPI=PUBLIC),@GeneratedProperty(name="allocationType",type=OperationAllocationType.class,supportedAPI=PUBLIC)},roleA=@GeneratedRole(name="usedBy",type=WTPart.class,supportedAPI=PUBLIC,cardinality=ONE_TO_MANY),roleB=@GeneratedRole(name="uses",type=WTPartMaster.class,supportedAPI=PUBLIC,cardinality=ONE_TO_MANY,owner=false),tableProperties=@TableProperties(compositeUnique1="+ roleAObjectRef.key.id+NVL(lineNumber.value,idA2A2)",compositeUnique2="+ roleAObjectRef.key.id+NVL(componentId,idA2A2)",compositeUnique3="+ roleAObjectRef.key.id + NVL(reference, idA2A2)",tableName="WTPartUsageLink",oracleTableSize=HUGE))
public class WTPartUsageLink
extends _WTPartUsageLink
This is an
IteratedUsageLink where a specific WTPart uses a WTPartMaster (actually it will use one of the
WTParts associated with the WTPartMaster based
on a config spec) and the part uses a specific Quantity (with
unit of measure) of the part master as a component of its structure.
For example to build a car there are 4 tires for each car built. For a hammock there might be 2 end ropes that are three feet long.
Note that since the link is between a WTPart and a WTPartMaster
it will be necessary to use a config spec (usually WTPartConfigSpec)
to select the correct version of the WTPartMaster, which
is a WTPart.
Use the newWTPartUsageLink static factory method(s), not
the WTPartUsageLink constructor, to construct instances
of this class. Instances must be constructed using the static factory(s),
in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
- See Also:
-
vc.config.ConfigSpec- Serialized Form
-
Field Summary
Fields inherited from class wt.part._WTPartUsageLink
ALLOCATION_TYPE, CAD_SYNCHRONIZED, LINE_NUMBER, QUANTITYFields inherited from class wt.vc.struct._IteratedUsageLink
USED_BY_ROLE, USES_ROLEFields inherited from interface wt.filter._Filterable
FILTERED_STATUSFields inherited from interface wt.occurrence._OccurrenceableLink
USES_OCCURRENCE_VECTORFields inherited from interface wt.configuration._TraceableLink
TRACE_CODE -
Method Summary
Modifier and TypeMethodDescriptionstatic WTPartUsageLinknewWTPartUsageLink(WTPart usedBy, WTPartMaster uses) Default factory for the class.Methods inherited from class wt.part._WTPartUsageLink
getAllocationType, getCadSynchronized, getFilteredStatus, getLineNumber, getQuantity, getTraceCode, getUsedBy, getUses, getUsesOccurrenceVector, setAllocationType, setCadSynchronized, setFilteredStatus, setLineNumber, setQuantity, setTraceCode, setUsedBy, setUses, setUsesOccurrenceVectorMethods inherited from class wt.vc.struct._IteratedUsageLink
setUsedBy, setUsesMethods inherited from class wt.fc.ObjectToObjectLink
appendJoinCriteria, duplicate, getAllObjects, getJoinValues, getRoleObject, setRoleObjectMethods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface wt.associativity.AssociativeUsageLink
getRoleAObject, getRoleAObjectRef, getRoleBObject, getRoleBObjectRefMethods inherited from interface wt.fc.BinaryLink
getLinkInfo, getOtherObject, getRole, getRoleAObjectId, getRoleBObjectIdMethods inherited from interface wt.fc.Link
appendJoinCriteria, appendRoleCriteria, getAllObjects, getJoinValues, getRoleIdName, getRoleObject, setRoleObjectMethods inherited from interface wt.fc.Persistable
checkAttributes
-
Method Details
-
newWTPartUsageLink
public static WTPartUsageLink newWTPartUsageLink(WTPart usedBy, WTPartMaster uses) throws WTException Default factory for the class.
Supported API: true- Parameters:
usedBy-uses-- Returns:
- WTPartUsageLink
- Throws:
WTException
-