Class AbstractDAIAdapter<P extends SclElementAdapter>

java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<P,TDAI>
org.lfenergy.compas.sct.commons.scl.ied.AbstractDAIAdapter<P>
All Implemented Interfaces:
IDataAdapter
Direct Known Subclasses:
DOIAdapter.DAIAdapter, RootSDIAdapter.DAIAdapter, SDIAdapter.DAIAdapter

public abstract class AbstractDAIAdapter<P extends SclElementAdapter> extends SclElementAdapter<P,TDAI> implements IDataAdapter
A representation of the model object AbstractDAIAdapter.

The following features are supported:

  1. Principal functions
  2. Checklist functions
See Also:
  • Constructor Details

    • AbstractDAIAdapter

      protected AbstractDAIAdapter(P parentAdapter, TDAI currentElem)
      Constructor
      Parameters:
      parentAdapter - Parent container reference
      currentElem - Current reference
  • Method Details

    • setValImport

      public void setValImport(boolean b)
      Sets ValImport value
      Parameters:
      b - value
    • update

      public AbstractDAIAdapter<? extends SclElementAdapter> update(Map<Long,String> daiValues) throws ScdException
      Throws:
      ScdException
    • update

      public void update(Long sGroup, String val) throws ScdException
      Updates DAI SGroup value. This method checks if DAI is updatable.
      Parameters:
      sGroup - SGroup to update
      val - value
      Throws:
      ScdException - throws when DAI for which SGroup should be updated is not updatable
    • setVal

      public void setVal(String value)
      Set Val (without sGroup) for DAI without checking if DAI is updatable
      Parameters:
      value - new value