public class SetHelper extends BaseXJDFHelper implements IMatches
| Modifier and Type | Class and Description |
|---|---|
static class |
SetHelper.EnumFamily |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAMETER_SET |
static java.lang.String |
RESOURCE_SET |
static java.lang.String |
SET |
log, theElement| Modifier and Type | Method and Description |
|---|---|
void |
addTypeToCPI(int pos)
add a CPI process
|
ResourceHelper |
appendPartition(JDFAttributeMap partMap,
boolean addRes) |
ResourceHelper |
appendPartition(java.lang.String partKey,
java.lang.String partValue,
boolean addRes)
convenience ...
|
ResourceHelper |
appendResource(VJDFAttributeMap partMaps,
boolean addRes) |
void |
cleanUp()
generic cleanup routine
|
double |
getAmountSum(boolean bGood) |
JDFIntegerList |
getCombinedProcessIndex() |
ResourceHelper |
getCreateExactPartition(JDFAttributeMap map,
boolean addRes)
get an existing partition with at least a matching partmap
|
ResourceHelper |
getCreatePartition(int index,
boolean addRes) |
ResourceHelper |
getCreatePartition(JDFAttributeMap map,
boolean addRes) |
ResourceHelper |
getCreatePartition(java.lang.String partKey,
java.lang.String partValue,
boolean addRes)
convenience ...
|
java.util.Vector<ResourceHelper> |
getCreatePartitions(VJDFAttributeMap vmap,
boolean addRes)
creates 1 partition for each entry in the map
|
ResourceHelper |
getCreateVPartition(VJDFAttributeMap vmap,
boolean addRes)
get an existing partition with at least a matching partmap
|
VString |
getDependentJobParts() |
java.lang.String |
getDescriptiveName() |
ResourceHelper |
getExactPartition(JDFAttributeMap map) |
java.lang.String |
getExternalID() |
SetHelper.EnumFamily |
getFamily() |
static SetHelper |
getHelper(KElement e)
factory to create a helper from an element
|
java.lang.String |
getName() |
ResourceHelper |
getPartition(int index) |
ResourceHelper |
getPartition(JDFAttributeMap map) |
ResourceHelper |
getPartition(java.lang.String id)
get a partition by id
|
ResourceHelper |
getPartition(java.lang.String key,
java.lang.String value) |
ResourceHelper |
getPartition(VJDFAttributeMap vmap) |
java.util.List<ResourceHelper> |
getPartitionList() |
java.lang.String |
getPartitionName() |
java.util.Vector<ResourceHelper> |
getPartitions() |
java.util.Vector<ResourceHelper> |
getPartitions(JDFAttributeMap map) |
java.util.Vector<ResourceHelper> |
getPartitions(VJDFAttributeMap vmap) |
VJDFAttributeMap |
getPartMapVector()
returns the unified partmaps
|
java.util.Collection<VJDFAttributeMap> |
getPartMapVectors() |
java.lang.String |
getProcessUsage() |
KElement |
getSet() |
static java.lang.String |
getSetName(KElement e) |
static java.lang.String |
getSetName(java.lang.String setName) |
java.util.Vector<ResourceHelper> |
getSuperPartitions(JDFAttributeMap map)
returns all partitions that are a superset of map
|
JDFResourceLink.EnumUsage |
getUsage() |
XJDFHelper |
getXJDF() |
int |
indexOf(ResourceHelper bsHelper) |
ResourceHelper |
insertPartitionBefore(ResourceHelper e,
JDFAttributeMap map,
boolean addRes) |
static boolean |
isSet(KElement e)
is the element a set?
|
static boolean |
isSet(java.lang.String localName)
is the element name a set?
|
boolean |
matches(java.lang.Object subset)
returns true if subset somehow matches this
the semantics are defined by the filtering algorithm, thus it could be a filter or a subset
i.e.
|
void |
removeIDs() |
void |
removePartitions()
remove all partitions in this set
|
void |
removeTypeFromCPI(int pos)
remove a CPI process
|
void |
setCombinedProcessIndex(JDFIntegerList cpi) |
void |
setDescriptiveName(java.lang.String description) |
void |
setExternalID(java.lang.String newID) |
void |
setGeneralID(java.lang.String idUsage,
java.lang.String idValue) |
void |
setID(java.lang.String newID) |
void |
setName(java.lang.String name) |
void |
setProcessUsage(java.lang.String processUsage) |
void |
setUsage(JDFResourceLink.EnumUsage value) |
java.lang.String |
toString() |
appendElement, appendElement, copyHelper, deleteNode, ensureID, equals, getAttribute, getAttributeMap, getBaseHelper, getBaseHelper, getComment, getCreateElement, getDefaultVersion, getGeneralID, getID, getLocalName, getRoot, getXJDFRoot, getXPathElement, getXPathValue, getXRoot, hasAttribute, hashCode, isEqual, removeAttribute, setAttribute, setComment, setDefaultVersion, setXPathValuepublic static final java.lang.String SET
public static final java.lang.String PARAMETER_SET
public static final java.lang.String RESOURCE_SET
public SetHelper(KElement set)
set - the set to help onpublic double getAmountSum(boolean bGood)
bGood - good=truepublic static boolean isSet(KElement e)
e - public static boolean isSet(java.lang.String localName)
localName - public ResourceHelper getPartition(JDFAttributeMap map)
map - public ResourceHelper getPartition(java.lang.String key, java.lang.String value)
map - public ResourceHelper getPartition(int index)
index - public ResourceHelper getCreatePartition(JDFAttributeMap map, boolean addRes)
map - addRes - public ResourceHelper getCreateVPartition(VJDFAttributeMap vmap, boolean addRes)
vmap - addRes - public ResourceHelper getCreateExactPartition(JDFAttributeMap map, boolean addRes)
vmap - addRes - public ResourceHelper getExactPartition(JDFAttributeMap map)
map - public ResourceHelper insertPartitionBefore(ResourceHelper e, JDFAttributeMap map, boolean addRes)
e - map - addRes - public java.util.Vector<ResourceHelper> getCreatePartitions(VJDFAttributeMap vmap, boolean addRes)
vmap - addRes - public ResourceHelper getCreatePartition(int index, boolean addRes)
index - addRes - public void removePartitions()
public ResourceHelper appendPartition(java.lang.String partKey, java.lang.String partValue, boolean addRes)
appendPartition(JDFAttributeMap, boolean)partKey - partValue - addRes - public ResourceHelper getCreatePartition(java.lang.String partKey, java.lang.String partValue, boolean addRes)
getCreatePartition(JDFAttributeMap, boolean)partKey - partValue - addRes - public ResourceHelper appendPartition(JDFAttributeMap partMap, boolean addRes)
partMap - addRes - if true, also add the detailed resource element, e.g. Layoutpublic ResourceHelper appendResource(VJDFAttributeMap partMaps, boolean addRes)
partMap - addRes - if true, also add the detailed resource element, e.g. Layoutpublic XJDFHelper getXJDF()
public java.util.Vector<ResourceHelper> getPartitions()
public java.util.List<ResourceHelper> getPartitionList()
public void cleanUp()
BaseXJDFHelpercleanUp in class BaseXJDFHelperpublic java.lang.String getName()
public java.lang.String getPartitionName()
public static java.lang.String getSetName(KElement e)
e - the element to testpublic static java.lang.String getSetName(java.lang.String setName)
setName - the name of the set elementpublic ResourceHelper getPartition(VJDFAttributeMap vmap)
vmap - public java.util.Vector<ResourceHelper> getPartitions(VJDFAttributeMap vmap)
vmap - public java.util.Vector<ResourceHelper> getPartitions(JDFAttributeMap map)
map - public java.util.Vector<ResourceHelper> getSuperPartitions(JDFAttributeMap map)
map - public KElement getSet()
public void setUsage(JDFResourceLink.EnumUsage value)
value - public JDFResourceLink.EnumUsage getUsage()
public java.lang.String getProcessUsage()
public JDFIntegerList getCombinedProcessIndex()
public void removeTypeFromCPI(int pos)
typ - pos - public void addTypeToCPI(int pos)
typ - pos - public void setCombinedProcessIndex(JDFIntegerList cpi)
public void setProcessUsage(java.lang.String processUsage)
public java.lang.String getDescriptiveName()
getDescriptiveName in class BaseXJDFHelperpublic java.lang.String getExternalID()
getExternalID in class BaseXJDFHelperpublic java.lang.String toString()
toString in class BaseXJDFHelperObject.toString()public ResourceHelper getPartition(java.lang.String id)
id - public SetHelper.EnumFamily getFamily()
public void setID(java.lang.String newID)
setID in class BaseXJDFHelperBaseXJDFHelper.setID(java.lang.String)public VJDFAttributeMap getPartMapVector()
public java.util.Collection<VJDFAttributeMap> getPartMapVectors()
public VString getDependentJobParts()
public void setName(java.lang.String name)
name - public void removeIDs()
public int indexOf(ResourceHelper bsHelper)
bsHelper - public static SetHelper getHelper(KElement e)
root - the element to parsepublic void setExternalID(java.lang.String newID)
public void setDescriptiveName(java.lang.String description)
public void setGeneralID(java.lang.String idUsage,
java.lang.String idValue)
public boolean matches(java.lang.Object subset)
IMatches