|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.fc.WTObject
wt.fc.ObjectToObjectLink
wt.vc.struct.IteratedUsageLink
wt.part.WTPartUsageLink
public class 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
vc.config.ConfigSpec,
Serialized Form| Field Summary | |
|---|---|
static String |
ALLOCATION_TYPE
Label for the attribute. |
static String |
LINE_NUMBER
Label for the attribute. |
static String |
QUANTITY
Label for the attribute. |
static String |
USED_BY_ROLE
Label for the attribute. |
static String |
USES_ROLE
Label for the attribute. |
| Fields inherited from interface wt.occurrence.OccurrenceableLink |
|---|
USES_OCCURRENCE_VECTOR |
| Fields inherited from interface wt.configuration.TraceableLink |
|---|
TRACE_CODE |
| Method Summary | |
|---|---|
OperationAllocationType |
getAllocationType()
Gets the object for the association that plays role: ALLOCATION_TYPE. |
LineNumber |
getLineNumber()
Gets the object for the association that plays role: LINE_NUMBER. |
Quantity |
getQuantity()
Gets the object for the association that plays role: QUANTITY. |
TraceCode |
getTraceCode()
Gets the object for the association that plays role: TRACE_CODE. |
Vector |
getUsesOccurrenceVector()
Gets the value of the attribute: USES_OCCURRENCE_VECTOR. |
static WTPartUsageLink |
newWTPartUsageLink(WTPart usedBy,
WTPartMaster uses)
Default factory for the class. |
void |
setAllocationType(OperationAllocationType a_AllocationType)
Sets the object for the association that plays role: ALLOCATION_TYPE. |
void |
setLineNumber(LineNumber a_LineNumber)
Sets the object for the association that plays role: LINE_NUMBER. |
void |
setQuantity(Quantity a_Quantity)
Sets the object for the association that plays role: QUANTITY. |
void |
setTraceCode(TraceCode a_TraceCode)
Sets the object for the association that plays role: TRACE_CODE. |
void |
setUsedBy(Iterated usedBy)
Sets the object for the association that plays role: USED_BY_ROLE. |
void |
setUses(Mastered uses)
Sets the object for the association that plays role: USES_ROLE. |
void |
setUsesOccurrenceVector(Vector a_UsesOccurrenceVector)
Sets the value of the attribute: USES_OCCURRENCE_VECTOR. |
| Methods inherited from class wt.vc.struct.IteratedUsageLink |
|---|
getUsedBy, getUses |
| Methods inherited from class wt.fc.WTObject |
|---|
getDisplayIdentifier, getDisplayIdentity, getDisplayType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String USED_BY_ROLE
public static final String USES_ROLE
public static final String QUANTITY
public static final String LINE_NUMBER
public static final String ALLOCATION_TYPE
| Method Detail |
|---|
public void setUsedBy(Iterated usedBy)
throws WTPropertyVetoException
setUsedBy in class IteratedUsageLinkusedBy -
WTPropertyVetoException
public void setUses(Mastered uses)
throws WTPropertyVetoException
setUses in class IteratedUsageLinkuses -
WTPropertyVetoExceptionpublic Quantity getQuantity()
public void setQuantity(Quantity a_Quantity)
a_Quantity - public LineNumber getLineNumber()
public void setLineNumber(LineNumber a_LineNumber)
throws WTPropertyVetoException
a_LineNumber -
WTPropertyVetoExceptionpublic OperationAllocationType getAllocationType()
public void setAllocationType(OperationAllocationType a_AllocationType)
throws WTPropertyVetoException
a_AllocationType -
WTPropertyVetoException
public static WTPartUsageLink newWTPartUsageLink(WTPart usedBy,
WTPartMaster uses)
throws WTException
usedBy - uses -
WTExceptionpublic Vector getUsesOccurrenceVector()
Vector contains UsesOccurrences, each of which may contain a PathOccurrence.
Note that any implementation of this interface must provide server-side
APIs that specifically populate this Vector, otherwise
it will be null.
getUsesOccurrenceVector in interface OccurrenceableLinkpublic void setUsesOccurrenceVector(Vector a_UsesOccurrenceVector)
Vector contains UsesOccurrences, each of which may contain a PathOccurrence.
Note that any implementation of this interface must provide server-side
APIs that specifically populate this Vector, otherwise
it will be null.
setUsesOccurrenceVector in interface OccurrenceableLinka_UsesOccurrenceVector - public TraceCode getTraceCode()
getTraceCode in interface TraceableLinkpublic void setTraceCode(TraceCode a_TraceCode)
setTraceCode in interface TraceableLinka_TraceCode -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||