BrightSide Workbench Full Report + Source Code
org.turro.dossier.graph.IssueVertex Class Reference

Public Member Functions

 IssueVertex (IssueGraph graph, IssueItem item)
 
Set< IssueItemgetTasks ()
 
IssueItem getItem ()
 
String getName ()
 
boolean isMilestone ()
 
boolean isAchieved ()
 
boolean isLeaf ()
 
boolean hasDates ()
 
Set< IssueVertexgetIncoming ()
 
Set< IssueVertexgetOutgoing ()
 
String getEntityPath ()
 
double percentDone ()
 
int hashCode ()
 
boolean equals (Object obj)
 

Detailed Description

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

Definition at line 32 of file IssueVertex.java.

Constructor & Destructor Documentation

◆ IssueVertex()

org.turro.dossier.graph.IssueVertex.IssueVertex ( IssueGraph  graph,
IssueItem  item 
)

Definition at line 38 of file IssueVertex.java.

38  {
39  this.graph = graph;
40  this.tasks = new HashSet<>();
41  this.item = item;
42  }
Here is the caller graph for this function:

Member Function Documentation

◆ equals()

boolean org.turro.dossier.graph.IssueVertex.equals ( Object  obj)

Definition at line 106 of file IssueVertex.java.

106  {
107  if (this == obj) {
108  return true;
109  }
110  if (obj == null) {
111  return false;
112  }
113  if (getClass() != obj.getClass()) {
114  return false;
115  }
116  final IssueVertex other = (IssueVertex) obj;
117  return Objects.equals(this.item, other.item);
118  }
IssueVertex(IssueGraph graph, IssueItem item)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEntityPath()

String org.turro.dossier.graph.IssueVertex.getEntityPath ( )

Definition at line 81 of file IssueVertex.java.

81  {
82  return DossierPU.getObjectPath(item.getIssue());
83  }
Here is the call graph for this function:

◆ getIncoming()

Set<IssueVertex> org.turro.dossier.graph.IssueVertex.getIncoming ( )

Definition at line 73 of file IssueVertex.java.

73  {
74  return graph.incomingEdgesOf(this).stream().map(e -> e.getSource()).collect(Collectors.toSet());
75  }

◆ getItem()

IssueItem org.turro.dossier.graph.IssueVertex.getItem ( )

Definition at line 48 of file IssueVertex.java.

48  {
49  return item;
50  }

◆ getName()

String org.turro.dossier.graph.IssueVertex.getName ( )

Definition at line 52 of file IssueVertex.java.

52  {
53  return item.getIssue().getDescription();
54  }
Here is the call graph for this function:

◆ getOutgoing()

Set<IssueVertex> org.turro.dossier.graph.IssueVertex.getOutgoing ( )

Definition at line 77 of file IssueVertex.java.

77  {
78  return graph.outgoingEdgesOf(this).stream().map(e -> e.getTarget()).collect(Collectors.toSet());
79  }

◆ getTasks()

Set<IssueItem> org.turro.dossier.graph.IssueVertex.getTasks ( )

Definition at line 44 of file IssueVertex.java.

44  {
45  return tasks;
46  }

◆ hasDates()

boolean org.turro.dossier.graph.IssueVertex.hasDates ( )

Definition at line 68 of file IssueVertex.java.

68  {
69  return item.getIssue().getStartDate() != null &&
70  item.getIssue().getDelivery() != null;
71  }
Here is the call graph for this function:

◆ hashCode()

int org.turro.dossier.graph.IssueVertex.hashCode ( )

Definition at line 99 of file IssueVertex.java.

99  {
100  int hash = 3;
101  hash = 67 * hash + Objects.hashCode(this.item);
102  return hash;
103  }

◆ isAchieved()

boolean org.turro.dossier.graph.IssueVertex.isAchieved ( )

Definition at line 60 of file IssueVertex.java.

60  {
61  return item.getIssue().getStatus().isFinished();
62  }
Here is the call graph for this function:

◆ isLeaf()

boolean org.turro.dossier.graph.IssueVertex.isLeaf ( )

Definition at line 64 of file IssueVertex.java.

64  {
65  return graph.outgoingEdgesOf(this).isEmpty();
66  }

◆ isMilestone()

boolean org.turro.dossier.graph.IssueVertex.isMilestone ( )

Definition at line 56 of file IssueVertex.java.

56  {
57  return item.getIssue().isMilestone();
58  }
Here is the call graph for this function:

◆ percentDone()

double org.turro.dossier.graph.IssueVertex.percentDone ( )

Definition at line 89 of file IssueVertex.java.

89  {
90  if(pcdone == -1) {
91  pcdone = Tasks.from(item.getIssue(), false, false).getPercentTasksDone();
92  }
93  return pcdone;
94  }
Here is the call graph for this function:

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