gpt4 book ai didi

org.eclipse.scada.da.core.WriteAttributeResults.keySet()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 09:57:05 27 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.scada.da.core.WriteAttributeResults.keySet()方法的一些代码示例,展示了WriteAttributeResults.keySet()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WriteAttributeResults.keySet()方法的具体详情如下:
包路径:org.eclipse.scada.da.core.WriteAttributeResults
类名称:WriteAttributeResults
方法名:keySet

WriteAttributeResults.keySet介绍

暂无

代码示例

代码示例来源:origin: de.dentrassi.eclipse.neoscada.core/org.eclipse.scada.ae.monitor.datasource

private WriteRequestResult handleAttributesWrite ( final WriteRequest request )
{
  final Map<String, Variant> attributes = new HashMap<String, Variant> ( request.getAttributes () );
  final WriteAttributeResults result = new WriteAttributeResults ();
  simpleHandleAttributes ( attributes, result, request.getOperationParameters () );
  // remove result keys from request
  for ( final String attr : result.keySet () )
  {
    attributes.remove ( attr );
  }
  return new WriteRequestResult ( request.getValue (), attributes, result );
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.core/org.eclipse.scada.da.server.common

@Override
protected WriteAttributeResults handleUnhandledAttributes ( final WriteAttributeResults writeAttributeResults, final Map<String, Variant> attributes )
{
  final AttributeWriteHandler handler = this.writeHandler;
  WriteAttributeResults result = null;
  try
  {
    result = handler.handleWrite ( attributes );
    // remove handled attributes
    for ( final String attr : result.keySet () )
    {
      attributes.remove ( attr );
    }
    return super.handleUnhandledAttributes ( result, attributes );
  }
  catch ( final Exception e )
  {
    if ( result == null )
    {
      result = new WriteAttributeResults ();
    }
    for ( final String attr : attributes.keySet () )
    {
      result.put ( attr, new WriteAttributeResult ( e ) );
    }
    return result;
  }
}

代码示例来源:origin: org.eclipse.neoscada.core/org.eclipse.scada.da.master

for ( final String attr : result.keySet () )

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com