Class ExtRefBindingInfo

java.lang.Object
org.lfenergy.compas.sct.commons.dto.ExtRefBindingInfo
All Implemented Interfaces:
Comparable<ExtRefBindingInfo>

public class ExtRefBindingInfo extends Object implements Comparable<ExtRefBindingInfo>
A representation of the model object ExtRef Binding Information.

The following features are supported:

  • Ied Name
  • Ld Inst
  • Ln Class
  • Ln Inst
  • Prefix
  • Ln Type
  • Refers To org.lfenergy.compas.sct.commons.dto.DaTypeName
  • Refers To org.lfenergy.compas.sct.commons.dto.DoTypeName
  • Service Type
See Also:
  • Field Details

  • Constructor Details

    • ExtRefBindingInfo

      public ExtRefBindingInfo(TExtRef tExtRef)
      Constructor
      Parameters:
      tExtRef - input
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isValid

      public boolean isValid()
      Check validity of ExtRef binding information
      Returns:
      validity state
    • isWrappedIn

      public boolean isWrappedIn(TExtRef tExtRef)
      Check dependency between ExtRef binding information and ExtRef
      Parameters:
      tExtRef - object containing ExtRef data's'
      Returns:
      dependency state
    • isNull

      public boolean isNull()
      Check nullability of ExtRef binding information
      Returns:
      nullability state
    • compareTo

      public int compareTo(ExtRefBindingInfo o)
      Define the way to compare 2 objects ExtRefBindingInfo in order to allow sorting items
      Specified by:
      compareTo in interface Comparable<ExtRefBindingInfo>
      Parameters:
      o - the object to be compared.
      Returns:
      the comparaison's result (a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • updateDAInfos

      public void updateDAInfos(ExtRefSignalInfo signalInfo, DataTypeTemplateAdapter.DOTypeInfo doTypeInfo) throws ScdException
      updates bindingInfo from given data
      Parameters:
      signalInfo - contains DAType info to set
      doTypeInfo - contains DOType info leading to DA
      Throws:
      ScdException - thrown when inconsistency between DOType and DAType