BrightSide Workbench Full Report + Source Code
org.turro.web.funnel.graph.FunnelVertexDOT Class Reference
Inheritance diagram for org.turro.web.funnel.graph.FunnelVertexDOT:
Collaboration diagram for org.turro.web.funnel.graph.FunnelVertexDOT:

Public Member Functions

 FunnelVertexDOT (Object item)
 
String getIdentifier ()
 
String getCaption ()
 
int getOrdering ()
 
String getColor ()
 
Set< Object > getNexts ()
 
int hashCode ()
 
boolean equals (Object obj)
 
int compareTo (FunnelVertexDOT o)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file FunnelVertexDOT.java.

Constructor & Destructor Documentation

◆ FunnelVertexDOT()

org.turro.web.funnel.graph.FunnelVertexDOT.FunnelVertexDOT ( Object  item)

Definition at line 38 of file FunnelVertexDOT.java.

38  {
39  this.item = item;
40  this.identifier = getIdentifier();
41  }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ compareTo()

int org.turro.web.funnel.graph.FunnelVertexDOT.compareTo ( FunnelVertexDOT  o)

Definition at line 126 of file FunnelVertexDOT.java.

126  {
127  return Comparison.ascendant()
128  .compare(getOrdering(), o.getOrdering())
129  .compare(getIdentifier(), o.getIdentifier())
130  .get();
131  }
Here is the call graph for this function:

◆ equals()

boolean org.turro.web.funnel.graph.FunnelVertexDOT.equals ( Object  obj)

Definition at line 109 of file FunnelVertexDOT.java.

109  {
110  if (this == obj) {
111  return true;
112  }
113  if (obj == null) {
114  return false;
115  }
116  if (getClass() != obj.getClass()) {
117  return false;
118  }
119  final FunnelVertexDOT other = (FunnelVertexDOT) obj;
120  return Objects.equals(this.identifier, other.identifier);
121  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCaption()

String org.turro.web.funnel.graph.FunnelVertexDOT.getCaption ( )

Definition at line 53 of file FunnelVertexDOT.java.

53  {
54  if(item instanceof WebItem webItem) {
55  return webItem.getCaption();
56  } else if(item instanceof WebGoal webGoal) {
57  return webGoal.getCaption();
58  } else {
59  return "#";
60  }
61  }

◆ getColor()

String org.turro.web.funnel.graph.FunnelVertexDOT.getColor ( )

Definition at line 73 of file FunnelVertexDOT.java.

73  {
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";
80  };
81  } else if(item instanceof WebGoal webGoal) {
82  return "#F2711C";
83  } else {
84  return "#";
85  }
86  }

◆ getIdentifier()

String org.turro.web.funnel.graph.FunnelVertexDOT.getIdentifier ( )

Definition at line 43 of file FunnelVertexDOT.java.

43  {
44  if(item instanceof WebItem webItem) {
45  return webItem.getWebTag();
46  } else if(item instanceof WebGoal webGoal) {
47  return webGoal.getGoalAction();
48  } else {
49  return "#";
50  }
51  }
Here is the caller graph for this function:

◆ getNexts()

Set<Object> org.turro.web.funnel.graph.FunnelVertexDOT.getNexts ( )

Definition at line 88 of file FunnelVertexDOT.java.

88  {
89  if(item instanceof WebItem webItem) {
90  Set<Object> set = new HashSet<>();
91  set.addAll(webItem.getNexts());
92  set.addAll(webItem.getGoals());
93  return set;
94  } else {
95  return Collections.EMPTY_SET;
96  }
97  }

◆ getOrdering()

int org.turro.web.funnel.graph.FunnelVertexDOT.getOrdering ( )

Definition at line 63 of file FunnelVertexDOT.java.

63  {
64  if(item instanceof WebItem webItem) {
65  return webItem.getOrdering();
66  } else if(item instanceof WebGoal webGoal) {
67  return webGoal.getOrdering();
68  } else {
69  return 0;
70  }
71  }
Here is the caller graph for this function:

◆ hashCode()

int org.turro.web.funnel.graph.FunnelVertexDOT.hashCode ( )

Definition at line 102 of file FunnelVertexDOT.java.

102  {
103  int hash = 5;
104  hash = 29 * hash + Objects.hashCode(this.identifier);
105  return hash;
106  }

The documentation for this class was generated from the following file: