public class AssetMeter extends DeployedMeter implements AssetMeterRemote
The key attributes for this object are as follows: SiteId, AssetNum 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 AssetMeters that employ a STATIC AvgCalcMethod. | |||||||||||||||||
ChangeBy, ChangeDate | Name of the user who entered or last modified this AssetMeter and the date the AssetMeter 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 AssetMeter's children. | |||||||||||||||||
DomainId | Non-persistent attribute. For AssetMeters 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 AssetMeter's new reading a roll the meter over. This attribute is READONLY when Rollover is null. | |||||||||||||||||
Active | Y/N field indicating whether or not the asset's meter is available to accept manual or rolled down readings, or to be used in PM or CM work order generation. | |||||||||||||||||
AssetNum | Asset associated with the meter in this
AssetMeter.
| |||||||||||||||||
GroupName | Identifier of the meter group
from which this meter was copied to this AssetMeter.
| |||||||||||||||||
InheritedFromAsset | Non-persistent attribute. Used to find additional readings in getAdditionalReadings() that may not have been part of a hierarchy at the time of a new reading or reading modification rolldown, but that may nevertheless need to be updated if they have become a child of one of the original AssetMeters during the rollforwad. | |||||||||||||||||
Inspector | Non-persistent attribute. Person who has provided the meter reading. | |||||||||||||||||
IsDelta | Non-persistent attribute. Is the meter reading being reported for this AssetMeter a delta value? | |||||||||||||||||
LastReading | Most recent reading for this AssetMeter. | |||||||||||||||||
LastReadingDate | Most recent reading date for this AssetMeter. | |||||||||||||||||
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
AssetMeter. 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 asset in this AssetMeter.
| |||||||||||||||||
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 AssetMeter. | |||||||||||||||||
PreviousReadingDate | Non-persistent attribute. Displays the most recent reading date for this AssetMeter. | |||||||||||||||||
Remarks | Additional information supplied by the user regarding the AssetMeter record. Long description enabled. | |||||||||||||||||
RolldownSource | Identifies whether or not a meter may accept reading deltas
from a parent asset's or location's meter. Valid values are:
If this attribute specifies ASSET or LOCATION, Active is 'Y' and this AssetMeter's
meter name is the same as the parent's meter name, then this asset's
| |||||||||||||||||
Rollover |
Rollover value for
this AssetMeter. If this AssetMeter has been created when applying a meter group
to this asset, the value defaults to the meter
group's rollover value but can then be modified.
| |||||||||||||||||
SinceInstall | Difference between the current meter reading for this AssetMeter's meter and the meter reading when this AssetMeter's asset was moved into its current configuration. | |||||||||||||||||
SinceLastInspection | Difference between the current meter reading for this
AssetMeter's meter and the meter reading when the last
work order of
type INSPECTION was opened or closed on this AssetMeter's asset
as determined by application setup.
| |||||||||||||||||
SinceLastOverhaul | Difference between the current meter reading for this
AssetMeter's meter and the meter reading when the last
work order of
type OVERHAUL was opened or closed on this AssetMeter's asset
as determined by application setup.
| |||||||||||||||||
SinceLastRepair | Difference between the current meter reading for this
AssetMeter's meter and the meter reading when the last
work order was opened or closed on this
AssetMeter's asset 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
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 |
---|
AssetMeter(MboSet ms)
Construct the AssetMeter object
|
Modifier and Type | Method and Description |
---|---|
void |
add()
on add, sets values specific to this AssetMeter instance
of a DeployedMeter, for example, the non-persistent AssetID.
|
void |
addAdjustedDeltaForRollDownId(java.lang.String rollId,
java.lang.String value)
adds adjusted deltas for a rolldownid in
FldMeterReadingDelta when a delta is modified on a reading with a ReadingSource of ENTERED,
that is, a reading that has not been INHERITED. |
void |
appValidate()
Issue#08-13711
If the MeterType is "CONTINUOUS" then Asset-Meter needs StartMeasure and EndMeasure
|
MboRemote |
copy(MboSetRemote mboset,
long mboAddFlags)
Adds a new mbo to the set passed in and copies the information for each
of the fields into the new mbo from this.
|
void |
delete(long accessModifier)
Mark the object to be deleted depending on the access modifier.
|
MboRemote |
getPreviousMeterReading(java.util.Date previousToDate)
gets the meter reading (for an AssetMeter whose meter is of type
CONTINUOUS) or measurement (for a AssetMeter whose meter is of type
CHARACTERISTIC or GAUGE) that immediately precedes one of the following:
meter reading/measurement being entered or updated for the DeployedMeter if meterreading activity is taking place current date/time, to get the last, that is, most recent reading taken for the DeployedMeter. |
void |
init()
initialization routine for this object.
|
boolean |
isChangeByUserWhenSetFromLookup(java.lang.String lookupAttrName,
java.lang.String attributeName)
Indicate whether the changeed by user flag should be set to the attribute when it is set along with other key field
when the lookup attribute is being set on this Linear Mbo.
|
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
|
void |
save()
Check if process is being saved via Integration.
|
void |
setTypeSpecificFlags()
sets meter type-specific field flags that are also specific to
the AssetMeter object
|
addModifiedReadingsForAvgCalc, addReading, canDelete, canDeleteForecast, enableDisable, enterReadingOnMaterialIssue, getAvgCalcMethod, getIsReadingUpdate, getIsWOMeterProcess, getMeterReadingForKnownDate, getNextMeterReading, getOrigMRUpdate, getReadingType, getReadingValueAsDouble, getSkipAverageRefresh, getSupressUniquenessErrorFlag, getTheMeter, getValidateOrder, isCurrentlyBeingAddedOnMeterGroupChange, isNegativeAdjustment, isReadingMostRecentReading, maintainWOMeter, meterInGroupToDeployedMeter, meterInGroupToDeployedMeter, pmForecastExistsForMeterOnPM, processNonContinuousReadings, refreshPreviousReadingInfo, resetMeter, returnDeploymentInfo, returnReadingForWOMeterProcessing, setAdjustmentIsNegative, setCurrentlyBeingAddedOnMeterGroupChange, setIsReadingUpdate, setOrigMRUpdate, setPreviousReadingInfoOnInit, setSkipAverageRefresh, undelete, validateALNEnteredDecimalValue
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copyFake, copyValue, copyValue, createComm, delete, 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, 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, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, 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, 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, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addModifiedReadingsForAvgCalc, addReading, enableDisable, enterReadingOnMaterialIssue, getAvgCalcMethod, getIsReadingUpdate, getIsWOMeterProcess, getMeterReadingForKnownDate, getOrigMRUpdate, getReadingType, getReadingValueAsDouble, getSkipAverageRefresh, getSupressUniquenessErrorFlag, getTheMeter, isCurrentlyBeingAddedOnMeterGroupChange, isNegativeAdjustment, isReadingMostRecentReading, maintainWOMeter, meterInGroupToDeployedMeter, meterInGroupToDeployedMeter, processNonContinuousReadings, refreshPreviousReadingInfo, resetMeter, returnDeploymentInfo, returnReadingForWOMeterProcessing, setAdjustmentIsNegative, setCurrentlyBeingAddedOnMeterGroupChange, setIsReadingUpdate, setOrigMRUpdate, setSkipAverageRefresh
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, 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, 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
public AssetMeter(MboSet ms) throws MXException, java.rmi.RemoteException
ms
- Mbo setMXException
java.rmi.RemoteException
public void addAdjustedDeltaForRollDownId(java.lang.String rollId, java.lang.String value) throws MXException, java.rmi.RemoteException
FldMeterReadingDelta
when a delta is modified on a reading with a ReadingSource of ENTERED,
that is, a reading that has not been INHERITED.rollId
- key for a new entry in the adjustedDeltas hashtable.value
- adjusted delta value for a new entry in the adjustedDeltas hashtable.MXException
java.rmi.RemoteException
public void setTypeSpecificFlags() throws MXException, java.rmi.RemoteException
setTypeSpecificFlags
in interface DeployedMeterRemote
setTypeSpecificFlags
in class DeployedMeter
MXException
java.rmi.RemoteException
init
,
FldAssetMeterMeterName
,
FldDeployedMeterAvgCalcMethod
public boolean isChangeByUserWhenSetFromLookup(java.lang.String lookupAttrName, java.lang.String attributeName)
isChangeByUserWhenSetFromLookup
in class Mbo
lookupAttrName
- the attribute whose lookup is being called.attributeName
- the attribute that is not the lookup attribute.public void init() throws MXException
DeployedMeter
init
in class DeployedMeter
MXException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class DeployedMeter
MXException
java.rmi.RemoteException
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class DeployedMeter
MXException
java.rmi.RemoteException
public MboRemote getPreviousMeterReading(java.util.Date previousToDate) throws MXException, java.rmi.RemoteException
getPreviousMeterReading
in interface DeployedMeterRemote
getPreviousMeterReading
in class DeployedMeter
previousToDate
- date used to find the previous reading (that is,the reading that is older
than but closest to the date)MXException
java.rmi.RemoteException
DeployedMeter.refreshPreviousReadingInfo(Date previousToDate)
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 save() throws MXException, java.rmi.RemoteException
save
in class DeployedMeter
MXException
java.rmi.RemoteException
enterNewReading
,
updateCumulatives
public void isOwningMboNOSAVE() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote copy(MboSetRemote mboset, long mboAddFlags) throws MXException, java.rmi.RemoteException
Mbo
copy
in interface MboRemote
copy
in class Mbo
mboset
- The set into which the new mbo will be added.mboAddFlags
- Flags to use when adding the new Mbo.
Values on the attribute are always set with NOACCESSCHECK|NOVALIDATION_AND_NOACTION.MXException
java.rmi.RemoteException