@@ -41,15 +41,44 @@ struct CpmActivity
4141 dependencies:: Vector{CpmActivity}
4242end
4343
44+ """
45+ CpmProblem
46+
47+ # Description
48+
49+ Represents a CPM (Critical Path Method) problem instance, containing the activities.
50+
51+ # Fields
52+
53+ - `activities::Vector{CpmActivity}`: A vector of activities in the CPM problem.
54+ """
4455struct CpmProblem
4556 activities:: Vector{CpmActivity}
4657end
4758
59+
60+
61+ """
62+ CpmResult
63+
64+ # Description
65+
66+ Represents the result of a CPM (Critical Path Method) analysis, containing the critical path and its activities.
67+
68+ # Fields
69+
70+ - `pathstr::Vector{String}`: A vector of strings representing the names of the activities in the critical path.
71+ - `path::Vector{CpmActivity}`: A vector of activities representing the critical path.
72+ """
4873struct CpmResult
4974 pathstr:: Vector{String}
5075 path:: Vector{CpmActivity}
5176end
5277
78+
79+
80+
81+
5382"""
5483 PertActivity(name::String, o::Float64, m::Float64, p::Float64)::PertActivity
5584
@@ -79,10 +108,39 @@ struct PertActivity
79108 dependencies:: Vector{PertActivity}
80109end
81110
111+
112+
113+
114+ """
115+ PertProblem
116+
117+ # Description
118+
119+ Represents a PERT (Program Evaluation and Review Technique) problem instance, containing the activities.
120+
121+ # Fields
122+
123+ - `activities::Vector{PertActivity}`: A vector of activities in the PERT problem.
124+ """
82125struct PertProblem
83126 activities:: Vector{PertActivity}
84127end
85128
129+
130+
131+ """
132+ PertResult
133+
134+ # Description
135+
136+ Represents the result of a PERT (Program Evaluation and Review Technique) analysis, containing the critical path and its activities.
137+
138+ # Fields
139+
140+ - `path::Vector{PertActivity}`: A vector of activities representing the critical path.
141+ - `mean::Float64`: The mean duration of the critical path.
142+ - `stddev::Float64`: The standard deviation of the critical path.
143+ """
86144struct PertResult
87145 path:: Vector{PertActivity}
88146 mean:: Float64
0 commit comments