public class LocationMeter extends DeployedMeter implements LocationMeterRemote
The key attributes for this object are as follows: SiteId, Location and MeterName.
The attributes in this object are as follows:
Attribute Name | Description | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AvgCalcMethod | Method used to calculate the average meter
units per day upon entry of a new or modified meter reading.
Valid values are as follows:
| |||||||||||||||||
AvgMeterUnits | Non-persistent attribute. Holds the calculated average value. This value is dynamically calculated based on the AvgCalcMethod and the AvgCalcValue or SlidingWindowSize. | |||||||||||||||||
AvgCalcValue | average value for CONTINUOUS LocationMeters that employ a STATIC AvgCalcMethod. | |||||||||||||||||
ChangeBy, ChangeDate | Name of the user who entered or last modified this LocationMeter and the date the LocationMeter was entered or modified. These default to the system user name and date. | |||||||||||||||||
DeltaValue | Non-persistent attribute. This attribute, the value of which is calculated when a new reading is reported, is used to roll down the reading to this LocationMeter's children. | |||||||||||||||||
DomainId | Non-persistent attribute. For LocationMeters associated with CHARACTERISTIC
meters only, this attribute holds domain information from the Meter. This domain information
is used by NewReading and
PreviousReading to look up and
validate against the values in the ALNValue object.
| |||||||||||||||||
DoRollover | Will this LocationMeter's new reading roll the meter over. This attribute is READONLY when Rollover is null. | |||||||||||||||||
Active | Y/N field indicating whether or not the location's meter is available to accept readings. | |||||||||||||||||
Location | Location associated with the meter in this
LocationMeter.
| |||||||||||||||||
GroupName | Identifier of the meter group
from which this meter was copied to this LocationMeter.
| |||||||||||||||||
Inspector | Non-persistent attribute. Person who has provided the meter reading. | |||||||||||||||||
IsDelta | Non-persistent attribute. Is the meter reading being reported for this LocationMeter a delta value? | |||||||||||||||||
LastReading | Most recent reading for this LocationMeter. | |||||||||||||||||
LastReadingDate | Most recent reading date for this LocationMeter. | |||||||||||||||||
LDKey | Long description key for the Remarks attribute. This is a link to text stored in the LongDescription table. | |||||||||||||||||
LifeToDate | Total of all meter readings since the meter was manufactured. Reset only on replacement of physical meter. | |||||||||||||||||
MeasureUnitId |
unit of measure for this
LocationMeter. The value defaults to the
meter's MeasureUnitId but can then be modified.
This attribute pertains only to meters of type CONTINUOUS
and GAUGE.
| |||||||||||||||||
MeterName | Identifier of the
meter associated with the location in this LocationMeter.
| |||||||||||||||||
NewReading | Non-persistent attribute. New meter reading value. | |||||||||||||||||
NewReadingDate | Non-persistent attribute. Date of the new meter reading value. This cannot be a future date. | |||||||||||||||||
PreviousReading | Non-persistent attribute. Displays the most recent reading for this LocationMeter. | |||||||||||||||||
PreviousReadingDate | Non-persistent attribute. Displays the most recent reading date for this LocationMeter. | |||||||||||||||||
PreviousReadingInspector | Non-persistent attribute. Displays the inspector for this LocationMeter's most recent reading. | |||||||||||||||||
Remarks | Additional information supplied by the user regarding the LocationMeter record. Long description enabled. | |||||||||||||||||
Rollover |
Rollover value for
this LocationMeter. If this LocationMeter has been created when applying a meter group
to this location, the value defaults to the meter
group's rollover value but can then be modified.
| |||||||||||||||||
SinceInstall | Difference between the current meter reading for this LocationMeter's meter and the meter reading when this LocationMeter's location was moved into its current configuration. | |||||||||||||||||
SinceLastInspection | Difference between the current meter reading for this
LocationMeter's meter and the meter reading when the last
work order of
type INSPECTION was opened or closed on this LocationMeter's location
as determined by application setup.
| |||||||||||||||||
SinceLastOverhaul | Difference between the current meter reading for this
LocationMeter's meter and the meter reading when the last
work order of
type OVERHAUL was opened or closed on this LocationMeter's location
as determined by application setup.
| |||||||||||||||||
SinceLastRepair | Difference between the current meter reading for this
LocationMeter's meter and the meter reading when the last
work order was opened or closed on this
LocationMeter's location as determined by application setup.
| |||||||||||||||||
SlidingWindowSize | if the AvgCalcMethod employs a sliding scale, this attribute specifies the number of readings, days, weeks or months to use in the average calculation. |
psdi.app.meter.metergroup
,
psdi.app.meter.meteringroup
app, avgCalcKey, coreAvgCalcSql, deployKey, earliestModifiedReading, enteringReplacementReading, isReadingUpdate, isWOMeterProcess, modifiedReadings, newMeterReading, origMRUpdate, readingTable, supressUniquenessError, woForWOMeter, woMeter_IdAttribute
MULTILANGCOPY, phantomList, phantomQueue
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 and Description |
---|
LocationMeter(MboSet ms)
Construct the LocationMeter object
|
Modifier and Type | Method and Description |
---|---|
void |
delete(long accessModifier)
Mark the object to be deleted depending on the access modifier.
|
protected java.lang.Object[] |
getDeploymentInfo()
provides key value and meter reading table name information for the
LocationMeter ("location" and "locmeterreading")
|
MboSetRemote |
getMboSet(java.lang.String name)
Get a related MboSet for the object using the named relationship.
|
void |
isOwningMboNOSAVE()
10-19707: the modify() method sets the owner(most likely Location) isModified flag to true.
|
void |
modify()
called whenever a field is modified to update the changedate and changeby attributes
|
protected void |
processContinuousReadings()
processes the new or adjusted reading for the LocationMeter by adding a new
meter reading (if the transaction is for a new reading) and updating this
LocationMeter's meterreadings that are subsequent to the new reading or modification.
|
protected void |
propagateNewLocMeterReadingToAssetsAtLoc(long meterreadingid)
when a new location meter reading is entered for this LocationMeter, creates asset meterreadings for
the AssetMeters of top-level assets at the location.
|
void |
save()
Check if process is being saved via Integration.
|
add, addModifiedReadingsForAvgCalc, addReading, appValidate, canDelete, canDeleteForecast, enableDisable, enterReadingOnMaterialIssue, getAvgCalcMethod, getDenominator, getIsReadingUpdate, getIsWOMeterProcess, getMeterReadingForKnownDate, getNextMeterReading, getNumerator, getOrigMRUpdate, getPreviousMeterReading, getReadingType, getReadingValueAsDouble, getSkipAverageRefresh, getSkipDateUniquenessCheck, getSupressUniquenessErrorFlag, getTheMeter, getValidateOrder, handleAssetMeterLocMeterForWOEnterMeterReading, hasDeployedMeterApprReadingDeletion, init, isCurrentlyBeingAddedOnMeterGroupChange, isEnteringReplacementReading, isMeterReadingDateUnique, isNegativeAdjustment, isReadingMostRecentReading, maintainWOMeter, meterInGroupToDeployedMeter, meterInGroupToDeployedMeter, pmForecastExistsForMeterOnPM, processNonContinuousReadings, refreshAverage, refreshPreviousReadingInfo, resetMeter, returnDeploymentInfo, returnReadingForWOMeterProcessing, rolloverIsInProgress, setAdjustmentIsNegative, setCurrentlyBeingAddedOnMeterGroupChange, setIsReadingUpdate, setOrigMRUpdate, setPreviousReadingInfoOnInit, setSkipAverageRefresh, setSkipDateUniquenessCheck, setTypeSpecificFlags, undelete, validateALNEnteredDecimalValue, validateReading
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, deleteDoclinks, determineRequiredFieldsFromERM, duplicate, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, fireEvent, generateAutoKey, 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, getMboSetInfo, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRecordType, getRelatedSets, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getTenantIdForNoMboRecordData, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAppLockEnabled, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isDuringInit, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDatabaseDefaultValues, setDatabaseDefaultValues, setDefaultValue, setDefaultValues, setDeleted, setDuringInit, 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, setRecordType, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setTenantIdForNoMboRecordData, 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, sigopGranted, sigOptionAccessAuthorized, skipCopyField, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, throwRequiredException, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addModifiedReadingsForAvgCalc, addReading, enableDisable, enterReadingOnMaterialIssue, getAvgCalcMethod, getIsReadingUpdate, getIsWOMeterProcess, getMeterReadingForKnownDate, getOrigMRUpdate, getPreviousMeterReading, getReadingType, getReadingValueAsDouble, getSkipAverageRefresh, getSupressUniquenessErrorFlag, getTheMeter, isCurrentlyBeingAddedOnMeterGroupChange, isNegativeAdjustment, isReadingMostRecentReading, maintainWOMeter, meterInGroupToDeployedMeter, meterInGroupToDeployedMeter, processNonContinuousReadings, refreshPreviousReadingInfo, resetMeter, returnDeploymentInfo, returnReadingForWOMeterProcessing, setAdjustmentIsNegative, setCurrentlyBeingAddedOnMeterGroupChange, setIsReadingUpdate, setOrigMRUpdate, setSkipAverageRefresh, setTypeSpecificFlags
add, addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, duplicate, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, 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, 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, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
public LocationMeter(MboSet ms) throws MXException, java.rmi.RemoteException
ms
- Mbo setMXException
java.rmi.RemoteException
protected java.lang.Object[] getDeploymentInfo() throws MXException, java.rmi.RemoteException
getDeploymentInfo
in class DeployedMeter
DeployedMeter
.MXException
java.rmi.RemoteException
DeployedMeter.getDeploymentInfo()
,
DeployedMeter.init()
,
psdi.app.meter.DeployedMeter#getReadings()
protected void processContinuousReadings() throws MXException, java.rmi.RemoteException
processContinuousReadings
in class DeployedMeter
MXException
java.rmi.RemoteException
LocationMeter.getReadings()
,
#LocMeterReadingSet.updateReadingsAfterReadingUpdate()
,
#LocMeterReadingSet.updateReadingsAfterNewReading()
protected void propagateNewLocMeterReadingToAssetsAtLoc(long meterreadingid) throws MXException, java.rmi.RemoteException
meterreadingid
- locmeterreading's meterreadingid, used to set the MeterReading.LocMeterReadingId
of any new asset meterreadings created here.MXException
java.rmi.RemoteException
public void modify() throws MXException, java.rmi.RemoteException
DeployedMeter
modify
in class DeployedMeter
MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
Mbo
delete
in interface MboRemote
delete
in class DeployedMeter
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.MXException
java.rmi.RemoteException
Mbo.delete(long)
public void isOwningMboNOSAVE() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void save() throws MXException, java.rmi.RemoteException
save
in class DeployedMeter
MXException
java.rmi.RemoteException
enterNewReading
,
updateCumulatives
public MboSetRemote getMboSet(java.lang.String name) throws MXException, java.rmi.RemoteException
Mbo
getMboSet
in interface MboRemote
getMboSet
in class Mbo
name
- The relationship provided to retrieve a
related mboSet, usually using foreign keys.
For example,
"psdi.app.workorder.WOSetRemote.ASSET" is
a relationship for the work order object to
access the asset Set where
"workorder.assetnum=asset.assetnum". The relationship can
also be chained. Such as ASSET.ASSETSTATUS.MXException
- "A relationship called {0} does not exist
for the {1} business object" exception
will be thrown if the relationship was not
found.
"Unknown Object" exception will be thrown
if the database object can not be
found through the relationship.java.rmi.RemoteException
Mbo.getMboSet(String)