org.epics.pvmanager.extra
Class DynamicGroup

java.lang.Object
  extended by org.epics.pvmanager.DesiredRateExpression<java.util.List<java.lang.Object>>
      extended by org.epics.pvmanager.extra.DynamicGroup

public class DynamicGroup
extends DesiredRateExpression<java.util.List<java.lang.Object>>

A expression that returns the result of a dynamically managed group. Once the group is created, any DesiredRateExpression can be added dynamically. The exceptions eventually generated by those expressions can be obtained through lastExceptions().

Author:
carcassi

Constructor Summary
DynamicGroup()
          Creates a new group.
 
Method Summary
 DynamicGroup add(DesiredRateExpression<?> expression)
          Adds the expression at the end.
 DynamicGroup clear()
          Removes all the expressions currently in the group.
 java.util.List<java.lang.Exception> lastExceptions()
          Returns the last exception for each expression in the group (if present).
 DynamicGroup remove(int index)
          Removes the expression at the given location.
 DynamicGroup set(int index, DesiredRateExpression<?> expression)
          Changes the expression to the given location.
 int size()
          Returns the number of expressions in the group.
 
Methods inherited from class org.epics.pvmanager.DesiredRateExpression
getDataRecipe, getDefaultName, getFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicGroup

public DynamicGroup()
Creates a new group.

Method Detail

lastExceptions

public java.util.List<java.lang.Exception> lastExceptions()
Returns the last exception for each expression in the group (if present).

Returns:
a list of exceptions (never null)

clear

public DynamicGroup clear()
Removes all the expressions currently in the group.

Returns:
this

size

public int size()
Returns the number of expressions in the group.

Returns:
number of expressions in the group

add

public DynamicGroup add(DesiredRateExpression<?> expression)
Adds the expression at the end.

Parameters:
expression - the expression to be added
Returns:
this

remove

public DynamicGroup remove(int index)
Removes the expression at the given location.

Parameters:
index - the position to remove
Returns:
this

set

public DynamicGroup set(int index,
                        DesiredRateExpression<?> expression)
Changes the expression to the given location.

Parameters:
index - the position to remove
expression - the new expression
Returns:
this


Copyright © 2011. All Rights Reserved.