R
- the type for the values in the read mapW
- the type for the values in the write mappublic class ReadWriteMap<R,W> extends DesiredRateReadWriteExpressionImpl<Map<String,R>,Map<String,W>>
This expression is a combination of a ReadMap
and a WriteMap
.
The map is dynamic: the child expressions can be added and removed
while the reader is active.
There is currently no way to retrieve the individual errors for each element of the map. If the value is a VType, the connection can be retrieved by looking at the alarm.
Constructor and Description |
---|
ReadWriteMap()
Creates a new group.
|
Modifier and Type | Method and Description |
---|---|
ReadWriteMap<R,W> |
add(DesiredRateReadWriteExpression<R,W> expression)
Adds the expression to the map.
|
ReadWriteMap<R,W> |
add(DesiredRateReadWriteExpressionList<R,W> expressions)
Adds the expressions to the map.
|
ReadWriteMap<R,W> |
clear()
Removes all the expressions currently in the map.
|
ReadWriteMap<R,W> |
remove(Collection<String> names)
Removes the expressions from the map.
|
ReadWriteMap<R,W> |
remove(String name)
Removes the expression with the given name.
|
int |
size()
Returns the number of expressions in the group.
|
as, fillReadRecipe, fillWriteRecipe, getDesiredRateExpressionImpl, getFunction, getName, getWriteExpressionImpl, getWriteFunction
and, and, and, getDesiredRateExpressions, getDesiredRateReadWriteExpressions, getWriteExpressions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, getDesiredRateReadWriteExpressions
and, getDesiredRateExpressions
and, getWriteExpressions
public ReadWriteMap<R,W> clear()
public int size()
public ReadWriteMap<R,W> add(DesiredRateReadWriteExpression<R,W> expression)
expression
- the expression to be addedpublic ReadWriteMap<R,W> add(DesiredRateReadWriteExpressionList<R,W> expressions)
expressions
- the new list of expressionspublic ReadWriteMap<R,W> remove(String name)
name
- the name of the expression to removepublic ReadWriteMap<R,W> remove(Collection<String> names)
names
- the names of the expressions to removeCopyright © 2010–2015. All rights reserved.