edu.neu.ccs.demeter.aplib
Interface NameMapI


public interface NameMapI

A relation whose domain is symbolic names in an encapsulated strategy and whose range is nodes and edge labels in a class graph.


Method Summary
 Collection get(String l, ClassGraphI G)
          A collection of nodes in class graph G corresponding to symbolic node name l in the strategy, or null if l is a wildcard (all nodes in the class graph).
 boolean match(String l, Object cgv)
          Does symbolic node name l map to class graph node cgv?
 boolean match(String l, String cgl)
          Does symbolic edge label l map to class graph edge label cgl?
 

Method Detail

get

public Collection get(String l,
                      ClassGraphI G)
               throws NoSuchClassGraphNodeException
A collection of nodes in class graph G corresponding to symbolic node name l in the strategy, or null if l is a wildcard (all nodes in the class graph).

NoSuchClassGraphNodeException

match

public boolean match(String l,
                     Object cgv)
Does symbolic node name l map to class graph node cgv?


match

public boolean match(String l,
                     String cgl)
Does symbolic edge label l map to class graph edge label cgl?