1 package Analysis.SSJava;
5 public class GlobalFlowNode {
7 NTuple<Location> locTuple;
8 CompositeLocation compLoc;
9 boolean isParamNodeWithIncomingFlows;
11 public GlobalFlowNode(NTuple<Location> in) {
13 isParamNodeWithIncomingFlows = false;
16 public void setParamNodeWithIncomingFlows(boolean in) {
17 isParamNodeWithIncomingFlows = in;
20 public boolean isParamNodeWithIncomingFlows() {
21 return isParamNodeWithIncomingFlows;
24 public int hashCode() {
25 return locTuple.hashCode();
28 public NTuple<Location> getLocTuple() {
32 public boolean equals(Object obj) {
34 if (obj instanceof GlobalFlowNode) {
35 GlobalFlowNode in = (GlobalFlowNode) obj;
36 if (locTuple.equals(in.getLocTuple())) {
45 public String toString() {
46 return locTuple.toString();
49 public NTuple<Descriptor> getDescTuple() {
50 NTuple<Descriptor> descTuple = new NTuple<Descriptor>();
52 for (int i = 0; i < locTuple.size(); i++) {
53 descTuple.add(locTuple.get(i).getLocDescriptor());
59 public String getID() {
61 NTuple<Descriptor> descTuple = getDescTuple();
63 for (int i = 0; i < descTuple.size(); i++) {
64 id += descTuple.get(i).getSymbol();
69 public void setInferCompositeLocation(CompositeLocation in) {
73 public CompositeLocation getInferCompositeLocation() {
77 public String getPrettyID() {
79 NTuple<Descriptor> descTuple = getDescTuple();
83 for (int i = 0; i < descTuple.size(); i++) {
85 id += locTuple.get(i);
88 id += descTuple.get(i).getSymbol();
93 if (compLoc != null) {
101 // if (isSkeleton()) {
105 if (property.length() > 0) {
106 property = " [" + property + "]";
109 return id + property;