psdi.app.asset

Class AssetLocRelation

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, AssetLocRelationRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class AssetLocRelation
    extends Mbo
    implements AssetLocRelationRemote
    MBO to represent an AssetLocRelation. See Asset package description for details.

    This is a system level object.

    The key attributes for this object is: SOURCEASSETNUM, TARGETASSETNUM and ASSETRELATIONNUM

    The attributes in this object are as follows:

    Attribute NameDescription
    ASSETLOCRELATIONIDUnique ID
    SOURCEASSETNUMIdentifier of the Source Asset.
    SOURCELOCATIONIdentifier of the Source Location.
    TARGETASSETNUMIdentifier of the Target Asset.
    TARGETLOCATIONIdentifier of the Target Location.
    SOURCESTARTMEASUREIdentifier of the Source Start Measure.
    TARGETSTARTMEASUREIdentifier of the Target Strat Measure.
    SOURCEENDMEASUREIdentifier of the Source End Measure.
    TARGETENDMEASUREIdentifier of the Target End Measure.
    SOURCESTARTOFFSETIdentifier of the Source Start Offset.
    SOURCESTARTYOFFSETIdentifier of the Source Start Y Offset.
    SITEIDSITE where AssetLocRelation exists.
    ORGIDOrganization where AssetLocRelation exists
    SOURCEYOFFSETREFSource Y Offset Referent.
    TARGETYOFFSETREFTarget Y Offset Referant.
    SOURCEZOFFSETREFSource Z Offset Referent.
    TARGETZOFFSETREFTarget z Offset Referant.
    SOURCESTARTZOFFSETSource start Z Offset.
    TARGETSTARTOFFSETTarget Start Offste.
    TARGETSTARTYOFFSETTarget Start Y Offset.
    TARGETSTARTZOFFSETTarget Start Z Offset.
    SOURCEENDOFFSETSource End Offset.
    SOURCEENDYOFFSETSource End Y Offset.
    SOURCEENDZOFFSETSource End Z Offset.
    TARGETENDOFFSETTarget End Offste.
    TARGETENDYOFFSETTarget End Y Offste.
    TARGETENDZOFFSETTarget End Z Offste.
    SOURCESTARTASSETFEATUREIDUnique Identifier for the start of this AssetLocRelation''s source asset feature.
    TARGETSTARTASSETFEATUREIDUnique Identifier for the start of this AssetLocRelation''s target asset feature.
    SOURCEENDASSETFEATUREIDUnique Identifier for the end of this AssetLocRelation''s source asset feature.
    TARGETENDASSETFEATUREIDUnique Identifier for the end of this AssetLocRelation''s target asset feature.
    ASSETRELATIONNUMAsset Relationship identifier.
    CREATEDDATEThe Date when the relation between the two Assets were established.
    SOURCELRMName of this linear referencing method. A linear referencing method is a mechanism for finding and stating the location of any point in a linear asset by referencing it to a known point. The method also specifies a marker (for example, mile post) and measure unit (for example, kilometre).
    TARGETLRMName of this linear referencing method. A linear referencing method is a mechanism for finding and stating the location of any point in a linear asset by referencing it to a known point. The method also specifies a marker (for example, mile post) and measure unit (for example, kilometre)
    SOURCESTARTFEATURELABELLabel used to identify the specific AssetFeature used to locate the start of the portion of the linear asset for which this relationship applies.
    SOURCEENDFEATURELABELLabel used to identify the specific AssetFeature used to locate the end of the portion of the linear asset for which this relationship applies.
    TARGETSTARTFEATURELABELLabel used to identify the specific AssetFeature used to locate the start of the portion of the linear asset for which this relationship applies.
    TARGETENDFEATURELABELLabel used to identify the specific AssetFeature used to locate the end of the portion of the linear asset for which this relationship applies.
    • Field Detail

      • createNewAssetNum

        public boolean createNewAssetNum
    • Constructor Detail

      • AssetLocRelation

        public AssetLocRelation(MboSet ms)
                         throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialization routine.
        Overrides:
        init in class Mbo
        Parameters:
        none -
        Throws:
        none
        MXException
      • getValidateOrder

        public java.lang.String[] getValidateOrder()
        validation order for asset attributes
        Overrides:
        getValidateOrder in class Mbo
        Returns:
        String array containing the asset attributes in the order in which they are to be validated
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        sets defaults values for a new AssetLocRelation object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException - MAXIMO System error
        java.rmi.RemoteException - RMI error
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        on creating new AssetLocRelationship record also creates AssetLocRelHistory record. if the Linear Relationship(AssetLocRelation) has 'IsLinearRef' to true, creates, records in AssetFeature. createSourceAssetFeatureRec(); and createTargetAssetFeatureRec();
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Description copied from class: Mbo
        Pre-save validation method. Programmer can override with specific rules.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • checkDuplicateRelationships

        public void checkDuplicateRelationships(java.lang.String sourceassetnum,
                                                java.lang.String assetrelationnum,
                                                java.lang.String targetassetnum)
                                         throws MXException,
                                                java.rmi.RemoteException
        Informs when a duplicate Relation has been entered for a SourceAsset/TragetAsset combination in AssetLocelationship table.
        Parameters:
        thisMbo - the object to which the meter is being added
        Throws:
        MXApplicationException("asset","sourcereltargetdupe") - when a duplicate relation is added to a asset-relationship.
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        If Asset Relationship is marked as the 'Use As Reference', also creates the asset feature records. That asset feature record can be used as start reference point or end reference point in another asset feature. In this scenario asset relationship record cannot be deleted.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        MXApplicationException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        override delete to delete this record
        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)
      • isChangeByUserWhenSetFromLookup

        public 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.
        Overrides:
        isChangeByUserWhenSetFromLookup in class Mbo
        Parameters:
        lookupAttrName - the attribute whose lookup is being called.
        attributeName - the attribute that is not the lookup attribute.
        Returns:
      • recalAssetRelMesModify

        public void recalAssetRelMesModify()
                                    throws MXException,
                                           java.rmi.RemoteException
        Recalibration for Asset-Relationships. If the Asset-Relationships creates Asset-Features; using the 'Use As Reference?' box on the relationships details tab, Asset-Features for Source-Relationship and Target-Relationship are created. If an user updates the measures on Asset-Relationship, then corresponding Source-Asset-Features and Target-Asset-Features are updated accordingly.
        Throws:
        MXException
        java.rmi.RemoteException
      • recalAssetRelFeatureMesModify

        public void recalAssetRelFeatureMesModify()
                                           throws MXException,
                                                  java.rmi.RemoteException
        Recalibration for Asset-Relationships. If the Asset-Relationships creates Asset-Features; using the 'Use As Reference?' box on the relationships details tab, Asset-Features for Source-Relationship and Target-Relationship are created. If an user updates the measures on Asset-Relationship, then corresponding Source-Asset-Features and Target-Asset-Features are updated accordingly.
        Throws:
        MXException
        java.rmi.RemoteException