public class MatchMappingImpl extends java.lang.Object implements MatchMapping
| Constructor and Description |
|---|
MatchMappingImpl(EGraph source,
EGraph target) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMatch(ENode sourceNode,
ENode targetNode)
This function add a mapping between the sourceNode and the targetNode.
|
void |
addMatchByIds(int newId,
int targetNodeId) |
void |
clone(MatchMapping mapping) |
int |
getCost() |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getMap() |
java.util.Set<java.util.Map.Entry<java.lang.Integer,java.lang.Integer>> |
getMatchs() |
java.util.Collection<java.lang.Integer> |
getRang() |
EGraph |
getSourceGraph() |
java.lang.Integer |
getSourceNodeIdMappedTo(int targetNodeId)
This function returns the id of source node that is mapped to the input targetNodeId.
|
java.util.Set<java.lang.Integer> |
getSourcesToNull() |
EGraph |
getTargetGraph() |
java.lang.Integer |
getTargetNodeIdMappedTo(int sourceNodeId) |
java.util.Set<java.lang.Integer> |
getTargetToNull() |
boolean |
inDomain(int sourceNodeId) |
boolean |
inRange(int targetNodeId) |
void |
inverse() |
void |
removeMatch(ENode source,
ENode target) |
void |
setCost(int cost) |
void |
setSourceGraph(EGraph graph) |
void |
setTargetGraph(EGraph graph) |
public void inverse()
inverse in interface MatchMappingpublic void addMatch(ENode sourceNode, ENode targetNode)
MatchMappingaddMatch in interface MatchMappingpublic void setTargetGraph(EGraph graph)
setTargetGraph in interface MatchMappingpublic void setSourceGraph(EGraph graph)
setSourceGraph in interface MatchMappingpublic java.util.Collection<java.lang.Integer> getRang()
public java.lang.Integer getSourceNodeIdMappedTo(int targetNodeId)
MatchMappinggetSourceNodeIdMappedTo in interface MatchMappingpublic void addMatchByIds(int newId,
int targetNodeId)
public void removeMatch(ENode source, ENode target)
removeMatch in interface MatchMappingpublic void clone(MatchMapping mapping)
clone in interface MatchMappingpublic java.util.Set<java.util.Map.Entry<java.lang.Integer,java.lang.Integer>> getMatchs()
getMatchs in interface MatchMappingpublic java.util.Set<java.lang.Integer> getSourcesToNull()
getSourcesToNull in interface MatchMappingpublic java.util.Set<java.lang.Integer> getTargetToNull()
getTargetToNull in interface MatchMappingpublic java.util.Map<java.lang.Integer,java.lang.Integer> getMap()
getMap in interface MatchMappingpublic int getCost()
getCost in interface MatchMappingpublic void setCost(int cost)
setCost in interface MatchMappingpublic java.lang.Integer getTargetNodeIdMappedTo(int sourceNodeId)
getTargetNodeIdMappedTo in interface MatchMappingpublic EGraph getSourceGraph()
getSourceGraph in interface MatchMappingpublic EGraph getTargetGraph()
getTargetGraph in interface MatchMappingpublic boolean inDomain(int sourceNodeId)
inDomain in interface MatchMappingpublic boolean inRange(int targetNodeId)
inRange in interface MatchMapping