public class MeasurementHolder extends AbstractRule implements ExecutableIF
Modifier and Type | Field and Description |
---|---|
protected AoSession |
aoSession |
protected java.lang.String |
dumpFilePath |
protected ElementHolder[][] |
extCompHolder |
protected java.lang.String |
fatherInstElemRef |
protected java.util.Map<java.lang.String,ElementHolder> |
generalHolder |
protected ElementHolder[][] |
lcHolder |
protected boolean |
loadCatalogs |
protected int |
maxRowsPerCall |
protected ElementHolder |
meaHolder |
protected java.lang.String |
meaNameRegExp |
protected java.lang.String |
measurementIdStr |
protected ElementHolder[] |
meqHolder |
protected ElementHolder |
phyDimHolder |
protected ElementHolder |
quantityHolder |
protected boolean |
readInstanceAttributes |
protected java.lang.String |
resultRef |
protected ElementHolder[] |
smHolder |
protected ElementHolder |
unitHolder |
protected boolean |
useQuery |
loggerName, postMethods, preMethods, sessionRef
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
MeasurementHolder() |
Modifier and Type | Method and Description |
---|---|
void |
addHolder(java.lang.String baseElementName,
ElementHolder holder)
Add a new holder to generic holder map
|
MeasurementHolder |
clone() |
void |
destroy()
Destroy all ElementHolders in the MeasurementHolder.
|
void |
execute()
Execute the program.
|
AoSession |
getAoSession() |
protected ElemId[] |
getElemIds(ElementHolder elemHolder,
java.lang.String baseType)
Get the ElemId[] for all instances in an ElementHolder.
|
ElementHolder[][] |
getExtCompHolder() |
NameValueUnit[][] |
getExtCompNvu() |
long |
getHighestLcId()
Get the highest id of all local columns in the MeasurementHolder
|
long |
getHighestMeqId()
Get the highest id of all measurement quantities in the MeasurementHolder
|
long |
getHighestSmId()
Get the highest id of all submatrices in the MeasurementHolder
|
java.util.Map<java.lang.String,ElementHolder> |
getHolder()
Add a new holder to generic holder map
|
ElementHolder[][] |
getLcHolder() |
NameValueUnit[][] |
getLcNvu()
Convenience method to get the NameValueUnit[][] from the LocalColumnHolder.
|
ElementHolder |
getMeaHolder() |
NameValueUnit[][] |
getMeaNvu()
Convenience method to get the NameValueUnit[][] from the MeaHolder.
|
ElementHolder[] |
getMeqHolder() |
NameValueUnit[][] |
getMeqNvu()
Convenience method to get the NameValueUnit[][] from the MeqHolder.
|
long |
getNextExtCompId()
Get the next free External component Id
|
long |
getNextLcId()
Get the next free LocalColumn Id
|
long |
getNextMeaId()
Get the next free Measurement Id
|
long |
getNextMeqId()
Get the next free Meq Id
|
long |
getNextSmId()
Get the next free Submatrix Id
|
ElementHolder |
getPhyDimHolder() |
NameValueUnit[][] |
getPhyDimNvu()
Convenience method to get the NameValueUnit[][] from the PhyDimHolder.
|
ElementHolder |
getQtyHolder() |
NameValueUnit[][] |
getQtyNvu()
Convenience method to get the NameValueUnit[][] from the QuantityHolder.
|
ElementHolder[] |
getSmHolder() |
NameValueUnit[][] |
getSmNvu()
Convenience method to get the NameValueUnit[][] from the SubmatrixHolder.
|
ElementHolder |
getUnitHolder() |
NameValueUnit[][] |
getUnitNvu()
Convenience method to get the NameValueUnit[][] from the UnitHolder.
|
NameValueUnit[][] |
getValue()
Get the named value from rule.
|
boolean |
hasCatalogs() |
void |
init()
Initialize the work.
|
void |
setAoSession(AoSession aoSession) |
void |
setExtCompHolder(ElementHolder[][] extCompHolder) |
void |
setLcHolder(ElementHolder[][] lcHolder) |
void |
setMeaHolder(ElementHolder meaHolder) |
void |
setMeqHolder(ElementHolder[] meqHolder) |
void |
setPhyDimHolder(ElementHolder phyDimHolder) |
void |
setQtyHolder(ElementHolder quantityHolder) |
void |
setSmHolder(ElementHolder[] smHolder) |
void |
setUnitHolder(ElementHolder unitHolder) |
void |
setValue(NameValueUnit[][] nvu)
Set the named values to rule.
|
execute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, terminate, toString, toString, toString
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptor
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
terminate
getContext, getDescriptor, setArguments, setContext, setDescriptor
protected ElementHolder meaHolder
protected ElementHolder[] meqHolder
protected ElementHolder[] smHolder
protected ElementHolder[][] lcHolder
protected ElementHolder unitHolder
protected ElementHolder quantityHolder
protected ElementHolder phyDimHolder
protected ElementHolder[][] extCompHolder
protected java.util.Map<java.lang.String,ElementHolder> generalHolder
protected java.lang.String resultRef
protected java.lang.String fatherInstElemRef
protected java.lang.String meaNameRegExp
protected boolean loadCatalogs
protected java.lang.String dumpFilePath
protected java.lang.String measurementIdStr
protected AoSession aoSession
protected boolean useQuery
protected int maxRowsPerCall
protected boolean readInstanceAttributes
public void execute() throws ExecutableException
AbstractRule
execute
in interface ExecutableIF
execute
in class AbstractRule
ExecutableException
- if execution fails.protected ElemId[] getElemIds(ElementHolder elemHolder, java.lang.String baseType) throws ExecutableException
elemHolder
- The ElementHolderbaseType
- The base type of the application element stored in the ElementHolderExecutableException
public NameValueUnit[][] getUnitNvu()
public NameValueUnit[][] getQtyNvu()
public NameValueUnit[][] getPhyDimNvu()
public NameValueUnit[][] getMeaNvu()
public NameValueUnit[][] getMeqNvu()
public NameValueUnit[][] getSmNvu()
public NameValueUnit[][] getLcNvu()
public long getHighestLcId()
public long getHighestSmId()
public long getHighestMeqId()
public void destroy()
public NameValueUnit[][] getValue() throws RuleException
RuleIF
getValue
in interface RuleIF
RuleException
RuleIF.setValue(NameValueUnit[][] nvu)
public void setValue(NameValueUnit[][] nvu) throws RuleException
RuleIF
setValue
in interface RuleIF
nvu
- The name value of the rule.RuleException
public void init() throws InitializationFailedException
AbstractImplementation
init
in interface ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- if the initialization fails.public MeasurementHolder clone()
clone
in class java.lang.Object
public long getNextLcId()
public long getNextExtCompId()
public long getNextMeqId()
public long getNextSmId()
public long getNextMeaId()
public ElementHolder getMeaHolder()
public void setMeaHolder(ElementHolder meaHolder)
public ElementHolder[] getMeqHolder()
public void setMeqHolder(ElementHolder[] meqHolder)
public ElementHolder[] getSmHolder()
public void setSmHolder(ElementHolder[] smHolder)
public ElementHolder[][] getLcHolder()
public void setLcHolder(ElementHolder[][] lcHolder)
public void setExtCompHolder(ElementHolder[][] extCompHolder)
public ElementHolder[][] getExtCompHolder()
public ElementHolder getUnitHolder()
public void setUnitHolder(ElementHolder unitHolder)
public ElementHolder getQtyHolder()
public void setQtyHolder(ElementHolder quantityHolder)
public ElementHolder getPhyDimHolder()
public void setPhyDimHolder(ElementHolder phyDimHolder)
public boolean hasCatalogs()
public NameValueUnit[][] getExtCompNvu()
public void addHolder(java.lang.String baseElementName, ElementHolder holder)
public java.util.Map<java.lang.String,ElementHolder> getHolder()
public AoSession getAoSession()
public void setAoSession(AoSession aoSession)