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

Public Member Functions

WebItemType getBehaviour (WebItem item)
 
Set< FunnelVertexgetTargets ()
 
Set< FunnelVertexgetSolutions ()
 
Set< FunnelVertexgetServices ()
 
Set< FunnelVertexgetChains ()
 
Set< FunnelVertexgetItems (Predicate< FunnelVertex > filter)
 
FunnelVertex getVertex (String webTag)
 
FunnelVertex getVertex (WebItem item)
 
WebGoal getGoal (String goalAction)
 

Static Public Member Functions

static WebItemType behaveAs (WebItem item)
 
static FunnelGraph load ()
 

Protected Attributes

final Cached< Daodao = Cached.instance(() -> new ElephantPU())
 

Detailed Description

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

Definition at line 39 of file FunnelGraph.java.

Member Function Documentation

◆ behaveAs()

static WebItemType org.turro.web.funnel.graph.FunnelGraph.behaveAs ( WebItem  item)
static

Definition at line 112 of file FunnelGraph.java.

112  {
113  return load().getBehaviour(item);
114  }
WebItemType getBehaviour(WebItem item)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBehaviour()

WebItemType org.turro.web.funnel.graph.FunnelGraph.getBehaviour ( WebItem  item)

Definition at line 41 of file FunnelGraph.java.

41  {
42  FunnelVertex vertex = getVertex(item);
43  return vertex == null ? null : vertex.getActingType();
44  }
FunnelVertex getVertex(String webTag)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getChains()

Set<FunnelVertex> org.turro.web.funnel.graph.FunnelGraph.getChains ( )

Definition at line 58 of file FunnelGraph.java.

58  {
59  return getItems(vertex -> vertex.isChain());
60  }
Set< FunnelVertex > getItems(Predicate< FunnelVertex > filter)
Here is the call graph for this function:

◆ getGoal()

WebGoal org.turro.web.funnel.graph.FunnelGraph.getGoal ( String  goalAction)

Definition at line 80 of file FunnelGraph.java.

80  {
81  return vertexSet().stream()
82  .flatMap(vertex -> vertex.getItem().getGoals().stream())
83  .filter(goal -> goal.getGoalAction().equals(goalAction))
84  .findAny().orElse(null);
85  }
Here is the caller graph for this function:

◆ getItems()

Set<FunnelVertex> org.turro.web.funnel.graph.FunnelGraph.getItems ( Predicate< FunnelVertex filter)

Definition at line 62 of file FunnelGraph.java.

62  {
63  return vertexSet().stream()
64  .filter(filter)
65  .collect(Collectors.toCollection(TreeSet::new));
66  }
Here is the caller graph for this function:

◆ getServices()

Set<FunnelVertex> org.turro.web.funnel.graph.FunnelGraph.getServices ( )

Definition at line 54 of file FunnelGraph.java.

54  {
55  return getItems(vertex -> vertex.isService());
56  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSolutions()

Set<FunnelVertex> org.turro.web.funnel.graph.FunnelGraph.getSolutions ( )

Definition at line 50 of file FunnelGraph.java.

50  {
51  return getItems(vertex -> vertex.isSolution());
52  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTargets()

Set<FunnelVertex> org.turro.web.funnel.graph.FunnelGraph.getTargets ( )

Definition at line 46 of file FunnelGraph.java.

46  {
47  return getItems(vertex -> vertex.isTarget());
48  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getVertex() [1/2]

FunnelVertex org.turro.web.funnel.graph.FunnelGraph.getVertex ( String  webTag)

Definition at line 68 of file FunnelGraph.java.

68  {
69  return vertexSet().stream()
70  .filter(vertex -> vertex.getWebTag().equals(webTag))
71  .findAny().orElse(null);
72  }
Here is the caller graph for this function:

◆ getVertex() [2/2]

FunnelVertex org.turro.web.funnel.graph.FunnelGraph.getVertex ( WebItem  item)

Definition at line 74 of file FunnelGraph.java.

74  {
75  return vertexSet().stream()
76  .filter(vertex -> vertex.getItem().equals(item))
77  .findAny().orElse(null);
78  }

◆ load()

static FunnelGraph org.turro.web.funnel.graph.FunnelGraph.load ( )
static

Definition at line 118 of file FunnelGraph.java.

118  {
119  return new FunnelGraph();
120  }
Here is the caller graph for this function:

Member Data Documentation

◆ dao

final Cached<Dao> org.turro.web.funnel.graph.FunnelGraph.dao = Cached.instance(() -> new ElephantPU())
protected

Definition at line 130 of file FunnelGraph.java.


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