Class LNodeDTO

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

public class LNodeDTO extends Object
A representation of the model object LNode.

The following features are supported:

  • Ln Class
  • Ln Inst
  • Ln Type
  • Prefix
  • Refers To ExtRef
  • Refers To GooseControl Blocks
  • Refers To SmvControl Blocks
  • Refers To ReportControl Blocks
  • Refers To DataTemplates Objects
See Also:
  • Constructor Details

    • LNodeDTO

      public LNodeDTO(String inst, String lnClass, String lnPrefix, String lnType)
      Constructor
      Parameters:
      inst - input
      lnClass - input
      lnPrefix - input
      lnType - input
  • Method Details

    • from

      public static <T extends TAnyLN> LNodeDTO from(AbstractLNAdapter<T> nodeAdapter, LogicalNodeOptions options)
      Initialize LN
      Type Parameters:
      T - LNode type (LLN0 or other LN's)
      Parameters:
      nodeAdapter - input
      options - input
      Returns:
      LNodeDTO object
    • setInst

      public void setInst(String inst)
      Sets LNode Inst value
      Parameters:
      inst - input
    • setNodeClass

      public void setNodeClass(String lnClass)
      Sets LNode Class value
      Parameters:
      lnClass - input
    • setNodeType

      public void setNodeType(String lnType)
      Sets LNode Type
      Parameters:
      lnType -
    • setPrefix

      public void setPrefix(String prefix)
      Sets LNode Prefix value
      Parameters:
      prefix - input
    • extractExtRefInfo

      public static LNodeDTO extractExtRefInfo(LNAdapter lnAdapter)
      Extracts LNode ExtRef informations
      Parameters:
      lnAdapter - input
      Returns:
      LNodeDTO object
    • addExtRefInfo

      public void addExtRefInfo(ExtRefInfo extRef)
      Adds ExtRef Info to LNode ExtRefs
      Parameters:
      extRef - input
    • addAllExtRefInfo

      public void addAllExtRefInfo(List<ExtRefInfo> extRefs)
      Adds list of ExtRef Info into LNode
      Parameters:
      extRefs - input
    • addControlBlock

      public void addControlBlock(ControlBlock controlBlock)
      Adds Control Block to LNode Control Blocks
      Parameters:
      controlBlock - input
    • addAllControlBlocks

      public void addAllControlBlocks(List<ControlBlock> controlBlockInfoList)
      Adds lis of Control Block to LNode Control Blocks
      Parameters:
      controlBlockInfoList - input
    • addAllDatSets

      public void addAllDatSets(List<DataSetInfo> dataSetList)
      Adds list of DataSet to LNode
      Parameters:
      dataSetList - input
    • addDataAttributeRef

      public void addDataAttributeRef(DataAttributeRef dataAttributeRef)
      Adds DataTypeTemplate's sumarised data
      Parameters:
      dataAttributeRef - input
    • addAllDataAttributeRef

      public void addAllDataAttributeRef(List<DataAttributeRef> dataAttributeRefs)
      Adds list of DataTypeTemplate's sumarised data
      Parameters:
      dataAttributeRefs - input
    • getDataAttributeRefs

      public Set<DataAttributeRef> getDataAttributeRefs()
      Gets DataTypeTemplate's sumarised data
      Returns:
      Set of DataAttributeRef object
    • addDataSet

      public void addDataSet(DataSetInfo dataSetInfo)
      Adds DataSet information to LNode
      Parameters:
      dataSetInfo - input