UpperWarning | Upper warning limit. Measurements above this level are approaching the upper action limit.
-
-
Field Summary
-
Fields inherited from interface psdi.mbo.MboConstants
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER
-
Constructor Summary
Constructors
Constructor and Description |
MeasurePoint(MboSet ms)
Construct the measurement point object.
|
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
void |
add()
This is called when a new measure point is added to the MeasurePint MboSet collection.
|
void |
appValidate()
Pre-save validation method.
|
void |
canDelete()
A measure point cannot be deleted if it is referenced by a work order's
work plan operation.
|
void |
delete(long accessModifier)
Deleting the measure point deletes all the referencing measurement and point workorder
records.
|
void |
generateAutoKey()
MeasurePoint supports autokeying - sets the POINTNUM attribute.
|
void |
generateWorkOrder(java.util.Date effectiveDate,
java.lang.String memo,
boolean actionsAsCriteria)
starts the work order generation process for the current MeasurePoint.
|
void |
generateWorkOrder(java.util.Date effectiveDate,
java.lang.String memo,
boolean actionsAsCriteria,
MboRemote measurement) |
void |
generateWorkOrderForCharacteristicMeter(java.util.Date effectiveDate,
java.lang.String memo,
boolean actionsAsCriteria)
starts the work order generation process when the current MeasurePoint has
a meter of type CHARACTERISTIC.
|
void |
generateWorkOrderForCharacteristicMeter(java.util.Date effectiveDate,
java.lang.String memo,
boolean actionsAsCriteria,
MboRemote measurement) |
void |
generateWorkOrderForGaugeMeter(java.util.Date effectiveDate,
java.lang.String memo,
boolean actionsAsCriteria)
starts the work order generation process when the current MeasurePoint has
a meter of type GAUGE.
|
void |
generateWorkOrderForGaugeMeter(java.util.Date effectiveDate,
java.lang.String memo,
boolean actionsAsCriteria,
MboRemote measurement) |
void |
genWOAndPointWOFromJobPlan(java.util.Date effectiveDate,
java.lang.String memo,
boolean useActionLimitCriteria,
java.lang.String jpnum,
int priority)
generates a work order and creates a PointWO
when the last measurement indicates that a Job Plan-generated work order is needed.
|
void |
genWOAndPointWOFromJobPlan(java.util.Date effectiveDate,
java.lang.String memo,
boolean useActionLimitCriteria,
java.lang.String jpnum,
int priority,
MboRemote measurement) |
void |
genWOAndPointWOFromPM(java.util.Date effectiveDate,
java.lang.String memo,
boolean useActionLimitCriteria,
java.lang.String pmnum,
int priority)
generates a work order and creates a PointWO
when the last measurement indicates that a PM work order is needed.
|
void |
genWOAndPointWOFromPM(java.util.Date effectiveDate,
java.lang.String memo,
boolean useActionLimitCriteria,
java.lang.String pmnum,
int priority,
MboRemote measurement) |
MboRemote |
getDeployedMeter() |
MboRemote |
getDeployedMeterForUpdate() |
java.lang.Object |
getJobPlanOrPMToGenWO()
used to determine if a Job Plan or PM is indicated by the last measurement.
|
java.lang.Object |
getJobPlanOrPMToGenWOForCharacteristicMeter()
used by MeasurePoints with meters of type CHARACTERISTIC to determine if a Job Plan or
PM is indicated by the last measurement.
|
java.lang.Object |
getJobPlanOrPMToGenWOForCharacteristicMeter(MboRemote measurement) |
java.lang.Object |
getJobPlanOrPMToGenWOForGaugeMeter()
used by MeasurePoints with meters of type GAUGE to determine if a Job Plan or
PM is indicated by the last measurement.
|
void |
init()
sets field flags that do not require SQL execution or the initialization
of other objects.
|
void |
initFieldFlagsOnMbo(java.lang.String attrName)
sets field flags that require SQL execution and the initialization
of other objects.
|
boolean |
isChangeByUserWhenSetFromLookup(java.lang.String lookupAttrName,
java.lang.String attributeName)
Indicates whether the CHANGEDBY_USER flag should be set
for attributes on this Mbo when their values are set
(along with other key fields) via lookup.
|
void |
save()
Save the object and other linked objects.
|
void |
setMoveAssetFlag(boolean flag)
Flag indicates measurepoint created during asset move across sites for new asset
|
void |
updateMeterOnMeasureDeletion() |
-
Methods inherited from class psdi.mbo.Mbo
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, determineRequiredFieldsFromERM, duplicate, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, fireEvent, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getESId, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertOrgForSite, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboCtx, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESId, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMboCtx, setMLValue, setModified, setModifiedForIntegrationOnly, setNewMbo, setNoSql, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface psdi.mbo.MboRemote
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, duplicate, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
-
-
Method Detail
-
appValidate
public void appValidate()
throws java.rmi.RemoteException,
MXException
Description copied from class: Mbo
Pre-save validation method. Programmer can override with
specific rules.
- Overrides:
appValidate in class Mbo
- Throws:
java.rmi.RemoteException
MXException
-
add
public void add()
throws MXException,
java.rmi.RemoteException
This is called when a new measure point is added to the MeasurePint MboSet collection.
Default values are set when this mbo in inserted.
- Specified by:
add in interface MboRemote
- Overrides:
add in class Mbo
- Throws:
MXException
java.rmi.RemoteException
-
canDelete
public void canDelete()
throws MXException,
java.rmi.RemoteException
A measure point cannot be deleted if it is referenced by a work order's
work plan operation.
- Overrides:
canDelete in class Mbo
- Throws:
MXApplicationException - NoDeleteMeasurePoint when this measurepoint is referenced by a work order's work plan operation.
MXException
java.rmi.RemoteException
-
delete
public void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
Deleting the measure point deletes all the referencing measurement and point workorder
records.
- Specified by:
delete in interface MboRemote
- Overrides:
delete in class Mbo
- Parameters:
accessModifier - The bitwise flag specified to determine
if certain normal security checks are to be
bypassed for this delete request.
For example:
if the accessModifer is NOACCESSCHECK, then the
check for the object's NODELETE flag and the
call to the object's canDelete() method
will not be performed.
If the accessModifer is NONE, then all the
access checks are performed before this object
is marked delete.
- Throws:
MXException
java.rmi.RemoteException
- See Also:
Mbo.delete(long)
-
getJobPlanOrPMToGenWOForGaugeMeter
public java.lang.Object getJobPlanOrPMToGenWOForGaugeMeter()
throws MXException,
java.rmi.RemoteException
used by MeasurePoints with meters of type GAUGE to determine if a Job Plan or
PM is indicated by the last measurement.
- Returns:
- the JobPlan or PM information to be used to generate a work order.
- Throws:
MXException
java.rmi.RemoteException
- See Also:
getJobPlanOrPMToGenWO() ,
#determineWOGenActionForGaugeMeter()
-
getJobPlanOrPMToGenWOForCharacteristicMeter
public java.lang.Object getJobPlanOrPMToGenWOForCharacteristicMeter()
throws MXException,
java.rmi.RemoteException
used by MeasurePoints with meters of type CHARACTERISTIC to determine if a Job Plan or
PM is indicated by the last measurement.
- Returns:
- the JobPlan or PM information to be used to generate a work order.
- Throws:
MXException
java.rmi.RemoteException
- See Also:
getJobPlanOrPMToGenWO() ,
getMostRecentMeasurement()
-
generateWorkOrderForCharacteristicMeter
public void generateWorkOrderForCharacteristicMeter(java.util.Date effectiveDate,
java.lang.String memo,
boolean actionsAsCriteria)
throws MXException,
java.rmi.RemoteException
starts the work order generation process when the current MeasurePoint has
a meter of type CHARACTERISTIC. The
observationsToActionsMap is used to determine if a criterium for work order
generation has been met.
- Parameters:
effectiveDate - work order generation date
memo - descrition used for point workorder
actionsAsCriteria - criteria for action limit checking
- Throws:
MXApplicationException("measurement","CannotGenerateWO")
MXException
java.rmi.RemoteException
- See Also:
generateWorkOrder(Date effectiveDate,String memo,boolean actionsAsCriteria) ,
getJobPlanOrPMToGenWOForCharacteristicMeter() ,
genWOAndPointWOFromPM(Date effectiveDate,String memo,boolean useActionLimitCriteria,String pmnum,int priority) ,
genWOAndPointWOFromJobPlan(Date effectiveDate,String memo,boolean useActionLimitCriteria,String jpnum,int priority)
-
generateWorkOrderForCharacteristicMeter
public void generateWorkOrderForCharacteristicMeter(java.util.Date effectiveDate,
java.lang.String memo,
boolean actionsAsCriteria,
MboRemote measurement)
throws MXException,
java.rmi.RemoteException
- Throws:
MXException
java.rmi.RemoteException
-
generateWorkOrderForGaugeMeter
public void generateWorkOrderForGaugeMeter(java.util.Date effectiveDate,
java.lang.String memo,
boolean actionsAsCriteria)
throws MXException,
java.rmi.RemoteException
starts the work order generation process when the current MeasurePoint has
a meter of type GAUGE.
- Parameters:
effectiveDate - work order generation date
memo - The descrition used for point workorder
actionsAsCriteria - Criteria for action limit checking
- Throws:
MXApplicationException("measurement","CannotGenerateWO")
MXException
java.rmi.RemoteException
- See Also:
generateWorkOrder(Date effectiveDate,String memo,boolean actionsAsCriteria) ,
genWOAndPointWOFromPM(Date effectiveDate,String memo,boolean useActionLimitCriteria,String pmnum,int priority) ,
genWOAndPointWOFromJobPlan(Date effectiveDate,String memo,boolean useActionLimitCriteria,String jpnum,int priority)
-
generateWorkOrderForGaugeMeter
public void generateWorkOrderForGaugeMeter(java.util.Date effectiveDate,
java.lang.String memo,
boolean actionsAsCriteria,
MboRemote measurement)
throws MXException,
java.rmi.RemoteException
- Throws:
MXException
java.rmi.RemoteException
-
genWOAndPointWOFromPM
public void genWOAndPointWOFromPM(java.util.Date effectiveDate,
java.lang.String memo,
boolean useActionLimitCriteria,
java.lang.String pmnum,
int priority)
throws MXException,
java.rmi.RemoteException
generates a work order and creates a PointWO
when the last measurement indicates that a PM work order is needed.
The actual work order generation occurs in the PM object.
- Specified by:
genWOAndPointWOFromPM in interface MeasurePointRemote
- Parameters:
effectiveDate - work order generation date
memo - descrition used for point workorder
actionsAsCriteria - criteria for action limit checking
pmnum - PM to use
priority - priority for the work order's WOPRIORITY
- Throws:
MXException
java.rmi.RemoteException
- See Also:
#doesWorkOrderExistForMostRecentMeasurement() ,
generateWorkOrderForGaugeMeter(Date effectiveDate,String memo,boolean actionsAsCriteria) ,
generateWorkOrderForCharacteristicMeter(Date effectiveDate,String memo,boolean actionsAsCriteria) ,
PM.getGeneratedWonum(int priority) ,
GenerateWOSet.genWOAndPointWO(Date effectiveDate,String memo,boolean useActionLimitCriteria,String pmOrJobPlan,String strPMNumOrJPNum,int priority)
-
genWOAndPointWOFromPM
public void genWOAndPointWOFromPM(java.util.Date effectiveDate,
java.lang.String memo,
boolean useActionLimitCriteria,
java.lang.String pmnum,
int priority,
MboRemote measurement)
throws MXException,
java.rmi.RemoteException
- Throws:
MXException
java.rmi.RemoteException
-
genWOAndPointWOFromJobPlan
public void genWOAndPointWOFromJobPlan(java.util.Date effectiveDate,
java.lang.String memo,
boolean useActionLimitCriteria,
java.lang.String jpnum,
int priority)
throws MXException,
java.rmi.RemoteException
generates a work order and creates a PointWO
when the last measurement indicates that a Job Plan-generated work order is needed.
- Specified by:
genWOAndPointWOFromJobPlan in interface MeasurePointRemote
- Parameters:
effectiveDate - work order generation date
memo - descrition used for point workorder
actionsAsCriteria - criteria for action limit checking
jpnum - job plan to use
priority - priority for the work order's WOPRIORITY
- Throws:
MXException
java.rmi.RemoteException
- See Also:
#doesWorkOrderExistForMostRecentMeasurement() ,
generateWorkOrderForCharacteristicMeter(Date effectiveDate,String memo,boolean actionsAsCriteria) ,
generateWorkOrderForGaugeMeter(Date effectiveDate,String memo,boolean actionsAsCriteria) ,
GenerateWOSet.genWOAndPointWO(Date effectiveDate,String memo,boolean useActionLimitCriteria,String pmOrJobPlan,String strPMNumOrJPNum,int priority)
-
genWOAndPointWOFromJobPlan
public void genWOAndPointWOFromJobPlan(java.util.Date effectiveDate,
java.lang.String memo,
boolean useActionLimitCriteria,
java.lang.String jpnum,
int priority,
MboRemote measurement)
throws MXException,
java.rmi.RemoteException
- Throws:
MXException
java.rmi.RemoteException
-
save
public void save()
throws MXException,
java.rmi.RemoteException
Description copied from class: Mbo
Save the object and other linked objects.
Subclasses can code their save() logic to include any appropriate updates
to other linked objects and call super.save().
- Throws:
MXException
java.rmi.RemoteException
- See Also:
maintainDeployedMeter()
-
isChangeByUserWhenSetFromLookup
public boolean isChangeByUserWhenSetFromLookup(java.lang.String lookupAttrName,
java.lang.String attributeName)
Indicates whether the CHANGEDBY_USER flag should be set
for attributes on this Mbo when their values are set
(along with other key fields) via lookup.
- Overrides:
isChangeByUserWhenSetFromLookup in class Mbo
- Parameters:
lookupAttrName - the attribute whose lookup is being called.
attributeName - the attribute that is not the lookup attribute.
- Returns:
|