19 package org.turro.web.funnel.graph;
21 import java.util.Collections;
22 import java.util.HashSet;
23 import java.util.Objects;
25 import org.turro.elephant.entities.web.WebGoal;
26 import org.turro.elephant.entities.web.WebItem;
27 import org.turro.util.Comparison;
35 private final Object item;
36 private final String identifier;
44 if(item instanceof
WebItem webItem) {
45 return webItem.getWebTag();
46 }
else if(item instanceof
WebGoal webGoal) {
47 return webGoal.getGoalAction();
54 if(item instanceof
WebItem webItem) {
55 return webItem.getCaption();
56 }
else if(item instanceof
WebGoal webGoal) {
57 return webGoal.getCaption();
64 if(item instanceof
WebItem webItem) {
65 return webItem.getOrdering();
66 }
else if(item instanceof
WebGoal webGoal) {
67 return webGoal.getOrdering();
74 if(item instanceof
WebItem webItem) {
75 return switch(webItem.getType()) {
76 case TARGET ->
"#1EBC30";
77 case SOLUTION ->
"#10A3A3";
78 case SERVICE ->
"#2185D0";
79 case CHAIN ->
"#767676";
81 }
else if(item instanceof
WebGoal webGoal) {
89 if(item instanceof
WebItem webItem) {
90 Set<Object>
set =
new HashSet<>();
91 set.addAll(webItem.getNexts());
92 set.addAll(webItem.getGoals());
95 return Collections.EMPTY_SET;
104 hash = 29 * hash + Objects.hashCode(this.identifier);
116 if (getClass() != obj.getClass()) {
120 return Objects.
equals(this.identifier, other.identifier);
127 return Comparison.ascendant()
FunnelVertexDOT(Object item)
int compareTo(FunnelVertexDOT o)
boolean equals(Object obj)