Class DataAttributeRef

java.lang.Object
org.lfenergy.compas.sct.commons.dto.DataAttributeRef

public class DataAttributeRef extends Object
A representation of the model object DataAttributeRef.

The following features are supported:

  • Constructor Details

  • Method Details

    • copyFrom

      public static DataAttributeRef copyFrom(DataAttributeRef source)
      Copies summarized DataTypeTemplate information to another one
      Parameters:
      source - input
      Returns:
      Updated DataAttributeRef object
    • isUpdatable

      public boolean isUpdatable()
      Checks if DA/DO is updatable
      Returns:
      true if updatable, false otherwise
    • getObjRef

      public String getObjRef(String iedName, String ldInst)
    • getLNRef

      public String getLNRef()
      Gets LNode reference information
      Returns:
      String LNode information concatenated
    • getDataAttributes

      public String getDataAttributes()
      Gets Data Attributes value
      Returns:
      String Data Attributes reference by concatenated DO reference and DA reference
    • getDoRef

      public String getDoRef()
      Gets DO reference value
      Returns:
      String DO (Data Object) reference value
    • getDaRef

      public String getDaRef()
      Gets DA (Data Attribut) reference value
      Returns:
      DA reference value
    • getFc

      public TFCEnum getFc()
      Gets FC (Functional Constraints) reference value
      Returns:
    • setFc

      public void setFc(TFCEnum fc)
      Sets DA/DO FC's value
      Parameters:
      fc - input
    • getCdc

      public TPredefinedCDCEnum getCdc()
      Gets DA/DO CDC's value
      Returns:
      CDC enum value
    • setCdc

      public void setCdc(TPredefinedCDCEnum cdc)
      Sets DA/DO CDC's value
      Parameters:
      cdc - input
    • getSdoNames

      public List<String> getSdoNames()
      Gets SDO names'
      Returns:
      List of SDO name
    • getBdaNames

      public List<String> getBdaNames()
      GEts BDA names'
      Returns:
      List of BDA name
    • addDoStructName

      public void addDoStructName(String structName)
      Adds DO Structure name
      Parameters:
      structName - input
    • addDaStructName

      public void addDaStructName(String structName)
      Adds DA Structure name
      Parameters:
      structName - input
    • isDoNameDefined

      public boolean isDoNameDefined()
      Checks if DO name is defined
      Returns:
      definition state
    • isDaNameDefined

      public boolean isDaNameDefined()
      Checks if DA name is defined
      Returns:
      definition state
    • getBType

      public TPredefinedBasicTypeEnum getBType()
      Gets DA Basic Type value
      Returns:
      Basic Type enum value
    • setType

      public void setType(String type)
      Sets DA type
      Parameters:
      type - input
    • getType

      public String getType()
      Gets DA type
      Returns:
      string DA type
    • setBType

      public void setBType(String bType)
      Sets DA Basic Type value
      Parameters:
      bType - input
    • setDoName

      public void setDoName(DoTypeName doName)
      Set DO name
      Parameters:
      doName - input
    • setDaName

      public void setDaName(DaTypeName daName)
      Sets DA name
      Parameters:
      daName - input
    • setDaiValues

      public void setDaiValues(List<TVal> values)
      Adds DAI values to DA
      Parameters:
      values - input
    • setValImport

      public void setValImport(boolean valImport)
      Set DA ValImport value
      Parameters:
      valImport - input
    • isValImport

      public boolean isValImport()
      Checks ValImport value
      Returns:
      ValImport value
    • setVal

      public DataAttributeRef setVal(String daiValue)
      Set Val of DA
      Parameters:
      daiValue - daiValue to set
      Returns:
      this
    • findFirstValue

      public Optional<String> findFirstValue()
      Retrieve value of the DAI, if present. If multiples values are found, the value with the lowest index is returned.
      Returns:
      Return the DAI value with the lowest key from getDaName().getdaiValues() map, or empty Optional if this DAI has no value.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object