|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.esi.bom.AlternateItemGroupMgr
Provides generally useful methods to create, delete, and.or access AlternateItemGroup
objects.
Supported API: true
Extendable: false
Field Summary | |
private static int |
AIGID_UPPER_LIMIT
|
private static char[] |
base36Chars
|
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static ArrayList |
IDs
|
private static int |
MAX
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
AlternateItemGroupMgr()
|
Method Summary | |
private int |
assignID(WTPart bom,
PartUsageInfo pui)
|
AlternateItemGroup |
createAlternateItemGroup(WTPart assembly,
PartUsageInfo partUsageInfo)
Create an AlternateItemGroup object in database based upon the given part usage info. |
boolean |
existAIG(WTPart assembly,
PartUsageInfo pui)
|
private AlternateItemGroup |
findAlternateItemGroup(WTPartMaster bomMaster,
long lineNumber)
Find an AlternateItemGroup with the given linenumber and roleA has the given master. |
private AlternateItemGroup |
findAlternateItemGroup(WTPartMaster bomMaster,
WTPartMaster roleB)
Find an AlternateItemGroup with the given roleB and roleA has the given master. |
private static void |
generateIDs()
|
int |
getAIGNumber(AlternateItemGroup aig)
Returns an AlternateItemGroup id. |
AlternateItemGroup |
getAlternateItemGroup(WTPart assembly,
PartUsageInfo partUsageInfo)
Returns an alternate item group, if one exists in the database. |
AlternateItemGroup |
getAlternateItemGroup(WTPart assembly,
WTPartMaster component,
LineNumber lineNumber)
Returns an alternate item group , if with line number , based upon an assembly part and line number, otherwise considering as consolidated usage links, means that only one association between an assembly and more than one same components Supported API: true |
protected String |
getAlternateItemGroupID(AlternateItemGroup aig)
Returns string to represent alternate item group identifier |
String |
getAlternateItemGroupID(WTPart bom,
PartUsageInfo pui)
|
Collection |
getAlternateItemGroups(WTPart assembly)
Returns a collection of alternate item groups for an assembly. |
private int |
getNewID(WTPart bom)
|
WTPartUsageLink |
getUsageLink(WTPart bom,
LineNumber lineNumber)
|
boolean |
hasSubstitutes(WTPart assembly,
PartUsageInfo partUsageInfo)
Checks if substitutes exist on a part usage link. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(AlternateItemGroupMgr thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
boolean |
withLineNumbers(PartUsageInfo pui)
The input of part usage info ensured that there is no mix of with line numbers and without line numbers exsit in one assebmbly |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final char[] base36Chars
private static int MAX
private static ArrayList IDs
private static final int AIGID_UPPER_LIMIT
Constructor Detail |
public AlternateItemGroupMgr()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(AlternateItemGroupMgr thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public AlternateItemGroup createAlternateItemGroup(WTPart assembly, PartUsageInfo partUsageInfo)
assembly
- The assembly part which defines the product structure (BOM) to which the AIG is to be associated.partUsageInfo
- The PartUsageInfo object that contains the part usage link information necessary to create an AIG.
public Collection getAlternateItemGroups(WTPart assembly)
assembly
- The assembly part.
public AlternateItemGroup getAlternateItemGroup(WTPart assembly, PartUsageInfo partUsageInfo)
assembly
- The assmbly part.partUsageInfo
- The PartUsageInfo object that contains the part usage link information necessary to identify an existing AIG.
public AlternateItemGroup getAlternateItemGroup(WTPart assembly, WTPartMaster component, LineNumber lineNumber)
assembly
- The assembly part.component
- The component part.lineNumber
- The line number for a WTPartUsageLink
.
public boolean hasSubstitutes(WTPart assembly, PartUsageInfo partUsageInfo)
assembly
- The assemblly part object.partUsageInfo
- The part usage info for the assembly.
public int getAIGNumber(AlternateItemGroup aig)
AlternateItemGroup
id.
aig
-
private int getNewID(WTPart bom)
private static void generateIDs()
public WTPartUsageLink getUsageLink(WTPart bom, LineNumber lineNumber)
public boolean withLineNumbers(PartUsageInfo pui)
public boolean existAIG(WTPart assembly, PartUsageInfo pui)
protected String getAlternateItemGroupID(AlternateItemGroup aig)
public String getAlternateItemGroupID(WTPart bom, PartUsageInfo pui)
private int assignID(WTPart bom, PartUsageInfo pui)
private AlternateItemGroup findAlternateItemGroup(WTPartMaster bomMaster, long lineNumber)
private AlternateItemGroup findAlternateItemGroup(WTPartMaster bomMaster, WTPartMaster roleB)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |