org.eclipse.scada.configuration.world.osgi.Exporter.getEndpoints()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(98)

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

Exporter.getEndpoints介绍

[英]Returns the value of the 'Endpoints' reference list. The list contents are of type org.eclipse.scada.configuration.world.Endpoint.

If the meaning of the 'Endpoints' reference list isn't clear, there really should be more of a description here...
[中]返回“端点”引用列表的值。列表内容的类型为org。日食scada。配置世界终点。
如果“Endpoints”引用列表的含义不清楚,那么这里应该有更多的描述。。。

代码示例

代码示例来源:origin: de.dentrassi.eclipse.neoscada.ide/org.eclipse.scada.configuration.world

@Override
public EList<Endpoint> getPossibleEndpoints ( final Exporter exporter )
{
  if ( ! ( exporter instanceof AlarmsEventsExporter ) )
  {
    return ECollections.emptyEList ();
  }
  return exporter.getEndpoints ();
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.ide/org.eclipse.scada.configuration.world

@Override
public EList<Endpoint> getPossibleEndpoints ( final Exporter exporter )
{
  if ( ! ( exporter instanceof DataAccessExporter ) )
  {
    return ECollections.emptyEList ();
  }
  return exporter.getEndpoints ();
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.ide/org.eclipse.scada.configuration.component.generator

protected Collection<Endpoint> getEndpoints ( final EquinoxApplication app )
{
  final Collection<Endpoint> result = new LinkedList<> ();
  if ( app == null )
  {
    return result;
  }
  for ( final Exporter exporter : app.getExporter () )
  {
    result.addAll ( exporter.getEndpoints () );
  }
  return result;
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.ide/org.eclipse.scada.configuration.dave

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated NOT
 */
@Override
public EList<Endpoint> getEndpoints ()
{
  final EList<Endpoint> result = ECollections.newBasicEList ();
  for ( final Exporter exporter : getExporter () )
  {
    result.addAll ( exporter.getEndpoints () );
  }
  return result;
}

代码示例来源:origin: org.eclipse.neoscada.ide/org.eclipse.scada.configuration.modbus

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated NOT
 */
@Override
public EList<Endpoint> getEndpoints ()
{
  final EList<Endpoint> result = ECollections.newBasicEList ();
  for ( final Exporter exporter : getExporter () )
  {
    result.addAll ( exporter.getEndpoints () );
  }
  return result;
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.ide/org.eclipse.scada.configuration.modbus

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated NOT
 */
@Override
public EList<Endpoint> getEndpoints ()
{
  final EList<Endpoint> result = ECollections.newBasicEList ();
  for ( final Exporter exporter : getExporter () )
  {
    result.addAll ( exporter.getEndpoints () );
  }
  return result;
}

代码示例来源:origin: org.openscada.ide/org.openscada.configuration.opcxml

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated NOT
 */
@Override
public EList<Endpoint> getEndpoints ()
{
  final EList<Endpoint> result = ECollections.newBasicEList ();
  for ( final Exporter exporter : getExporter () )
  {
    result.addAll ( exporter.getEndpoints () );
  }
  return result;
}

代码示例来源:origin: org.eclipse.neoscada.ide/org.eclipse.scada.configuration.driver.parser

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated NOT
 */
@Override
public EList<Endpoint> getEndpoints ()
{
  final EList<Endpoint> result = ECollections.newBasicEList ();
  for ( final Exporter exporter : getExporter () )
  {
    result.addAll ( exporter.getEndpoints () );
  }
  return result;
}

代码示例来源:origin: org.openscada.ide/org.openscada.configuration.iec60870

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated NOT
 */
@Override
public EList<Endpoint> getEndpoints ()
{
  final EList<Endpoint> result = ECollections.newBasicEList ();
  for ( final Exporter exporter : getExporter () )
  {
    result.addAll ( exporter.getEndpoints () );
  }
  return result;
}

代码示例来源:origin: org.eclipse.neoscada.ide/org.eclipse.scada.configuration.world.lib

public void process ()
{
  if ( this.app.getCustomizationProfile () == null )
  {
    this.app.setCustomizationProfile ( ProfileFactory.eINSTANCE.createProfile () );
  }
  final Profile prof = this.app.getCustomizationProfile ();
  final Map<Class<?>, Exporter> countMap = new HashMap<> ();
  for ( final Exporter exporter : this.app.getExporter () )
  {
    if ( exporter.getEndpoints ().size () != 1 )
    {
      throw new IllegalStateException ( "At the moment each exporter must not have exactly than one endpoint" );
    }
    if ( countMap.containsKey ( exporter.getClass () ) )
    {
      throw new IllegalStateException ( String.format ( "At the moment there must not me more than one exporter at a time for the type: %s", exporter.getClass () ) );
    }
    countMap.put ( exporter.getClass (), exporter );
    final String tag = exporter.getTypeTag ();
    put ( prof, String.format ( "org.eclipse.scada.%s.server.exporter.ngp.exportUri", tag ), makeUri ( tag, exporter.getEndpoints ().get ( 0 ) ) );
  }
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.ide/org.eclipse.scada.configuration.world.lib

public void process ()
{
  if ( this.app.getCustomizationProfile () == null )
  {
    this.app.setCustomizationProfile ( ProfileFactory.eINSTANCE.createProfile () );
  }
  final Profile prof = this.app.getCustomizationProfile ();
  final Map<Class<?>, Exporter> countMap = new HashMap<> ();
  for ( final Exporter exporter : this.app.getExporter () )
  {
    if ( exporter.getEndpoints ().size () != 1 )
    {
      throw new IllegalStateException ( "At the moment each exporter must not have exactly than one endpoint" );
    }
    if ( countMap.containsKey ( exporter.getClass () ) )
    {
      throw new IllegalStateException ( String.format ( "At the moment there must not me more than one exporter at a time for the type: %s", exporter.getClass () ) );
    }
    countMap.put ( exporter.getClass (), exporter );
    final String tag = exporter.getTypeTag ();
    put ( prof, String.format ( "org.eclipse.scada.%s.server.exporter.ngp.exportUri", tag ), makeUri ( tag, exporter.getEndpoints ().get ( 0 ) ) );
  }
}

代码示例来源:origin: org.eclipse.neoscada.ide/org.eclipse.scada.configuration.infrastructure.lib

private Endpoint createExporter ( final EClass exporterClass, final Node node, final EquinoxApplication application, final int port )
{
  final Exporter exporter = (Exporter)EcoreUtil.create ( exporterClass );
  final Endpoint ep = Endpoints.registerEndpoint ( node, port, Endpoints.reference ( exporter ), String.format ( "Exporter Endpoint: %s - %s", exporter.getTypeTag (), exporter.getName () ) );
  node.getEndpoints ().add ( ep );
  exporter.setName ( application.getName () + "/exporter" );
  exporter.getEndpoints ().add ( ep );
  application.getExporter ().add ( exporter );
  return ep;
}

代码示例来源:origin: org.eclipse.neoscada.ide/org.eclipse.scada.configuration.lib

for ( final Endpoint endp : exp.getEndpoints () )

代码示例来源:origin: de.dentrassi.eclipse.neoscada.ide/org.eclipse.scada.configuration.lib

for ( final Endpoint endp : exp.getEndpoints () )

相关文章