psdi.app.asset

Class AssetStatus

  • All Implemented Interfaces:
    java.rmi.Remote, AssetStatusRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class AssetStatus
    extends Mbo
    implements AssetStatusRemote
    MBO object to represent the status of a piece of asset. See Asset package description for details.

    This is a site level object.

    The key attributes for this object are as follows: SiteId ,AssetNum and ChangeDate.

    The attributes in this object are as follows:

    Attribute NameDescription
    CalnumCalendar used to specify when this asset is normally in operation.
    Changeby, ChangedateUser who has changed the up/down status of this asset. This attribute defaults to the current user unless a value is provided. Date of asset up/down status change. This attribute defaults to the MXServer date/time unless a value is provided.
    CodeReason for reported downtime. Valid values are from the DOWNCODE value list.
    DowntimeElapsed time between the date/time when Isrunning is set to false and the date/time when Isrunning is set back to true. This value must be zero for AssetStatus objects where Isrunning is false as it is only calculated when asset is brought back on line, that is, Isrunning is changed from false to true.
    AssetnumUnique identifier for the piece of asset that had a status change.
    IsrunningBoolean flag to indicate whether the asset identified by the attribute Assetnum is up(true) or down(false).
    LocationAsset location at the time of the status change.
    OperationalBoolean that flags an asset status change from up (that is, attribute Isrunning = true) to down (that is, attribute Isrunning = false) as being Operational, that is, a time when the piece of asset is normally in use, or non-Operational, that is, a time when the asset is not normally in use or its being off line does not affect production.
    OrgIdIdentifier of the organization for this asset status.
    SiteIdIdentifier of the site for this asset status.
    WonumIdentifies the work order that caused the status of this piece of asset to change.
    • Constructor Detail

      • AssetStatus

        public AssetStatus(MboSet ms)
                    throws MXException,
                           java.rmi.RemoteException
        Construct the asset status object
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Adds a new ASSETSTATUS record. This can only be done if the owner is the Asset object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXApplicationException("asset","assetStatusNoAdd") - if owner is not the Asset object
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Checks to make sure that the owner is the Asset object before proceeding to the delete method.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXApplicationException("asset","assetStatusNoDelete") - if owner is not the Asset object
        MXException
        java.rmi.RemoteException