public final class ExecutionPropertyMap extends Object implements Serializable
Constructor and Description |
---|
ExecutionPropertyMap(String id)
Constructor for ExecutionPropertyMap class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(ExecutionProperty.Key key) |
boolean |
equals(Object obj) |
void |
forEachProperties(Consumer<? super ExecutionProperty> action)
Same as forEach function in Java 8, but for execution properties.
|
<T> T |
get(ExecutionProperty.Key executionPropertyKey)
Get the value of the given execution property type.
|
String |
getId()
ID of the item this ExecutionPropertyMap class is keeping track of.
|
int |
hashCode() |
static ExecutionPropertyMap |
of(IREdge irEdge,
DataCommunicationPatternProperty.Value commPattern)
Static initializer for irEdges.
|
static ExecutionPropertyMap |
of(IRVertex irVertex)
Static initializer for irVertex.
|
ExecutionProperty<?> |
put(ExecutionProperty<?> executionProperty)
Put the given execution property in the ExecutionPropertyMap.
|
ExecutionProperty<?> |
remove(ExecutionProperty.Key key)
remove the execution property.
|
String |
toString() |
public ExecutionPropertyMap(String id)
id
- ID of the vertex / edge to keep the execution property of.public static ExecutionPropertyMap of(IREdge irEdge, DataCommunicationPatternProperty.Value commPattern)
irEdge
- irEdge to keep the execution property of.commPattern
- Data communication pattern type of the edge.public static ExecutionPropertyMap of(IRVertex irVertex)
irVertex
- irVertex to keep the execution property of.public String getId()
public ExecutionProperty<?> put(ExecutionProperty<?> executionProperty)
executionProperty
- execution property to insert.public <T> T get(ExecutionProperty.Key executionPropertyKey)
T
- Type of the return value.executionPropertyKey
- the execution property type to find the value of.public ExecutionProperty<?> remove(ExecutionProperty.Key key)
key
- key of the execution property to remove.public boolean containsKey(ExecutionProperty.Key key)
key
- key to look for.public void forEachProperties(Consumer<? super ExecutionProperty> action)
action
- action to apply to each of the execution properties.Copyright © 2018. All rights reserved.