psdi.app.feature

Class FeatureSpec

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


    public class FeatureSpec
    extends SpecificationMbo
    implements FeatureSpecRemote
    Mbo object to represent Item Specification. See Item Package description for details.

    This is a organization level object.

    The key attributes in this object are as follows: OrgId, ItemNum, ItemSetID, AssetAttrId

    The attributes in this object are as follows:

    Attribute NameDescription
    AllAsSpecUseValueSpecifies whether this object's ALN or Numeric value is used by asset specifications that originated from this item specifications.
    AllLocSpecUseValueSpecifies whether this object's ALN or Numeric value is used by location specifications that originated from this item specications.
    ALNValueAlphanumeric(text) value in entered units for the attribute specified. Editable only when the attribute is of ALN type. Defaults from ClassSpec.DefaultALNValue.
    AssetAttridAsset attribute identifier.
    ChangeBy,ChangeDateName of the user who last modified this object. This attribute defaults to the current user unless another value is provided. Date this object was last modified.This attribute defaults to the MXServer date/time unless another value is provided.
    ClassStructureidIdentifier of the class structure associated with this item specification.Class structures are the hierarchies of classifications (for example, centrifugal or rotarty pumps) around which assets can be organized.
    DisplaySequenceA number to indicate this object's display sequence in the item's specification. Value is copied from corresponding class specification when the item specificition is created.
    ItemnumItem Number.
    ItemSetIDIdentifier of the itemset identifier for this object. *
    MeasureUnitIdUnit of Measure for the AlnValue or NumValue entered. Value is initially copied from ClassSpec but can be edited after the copy.
    NUMValueNumeric value in entered units for the attribute specified. Editable only when the attribute is of NUMERIC type.
    OrgIdIdentifier of the organization for this specification.
    RotatingUsed for asset catalog search, specifies whether or not item is a rotating asset.
    IS01 - IS05Cross-over fields from ClassSpec.CS01 to ClassSpec.CS05, respectively
    • Constructor Detail

      • FeatureSpec

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        set default values for a new itemspec object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class SpecificationMbo
        Throws:
        MXException - MAXIMO System error
        java.rmi.RemoteException - RMI error
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        Overrides the skipCopyField() in the Mbo. Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped by using the data from the static HashSet. If this field does not need to be copied return true. Only itemnum,changedate,and changeby will be will be skipped in copying this itemspec.
        1. ITEMNUM CHANGEBY CHANGEDATE
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        The - MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        True,if the field does not need to be copied.In all other cases return false.
        Throws:
        java.rmi.RemoteException
        MXException
        See Also:
        Item.loadSkipFieldCopyHashSet()