1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
/*******************************************************************************
* Copyright (c) 2015 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ats.client.demo.config;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.osee.ats.api.insertion.JaxInsertion;
/**
* @author Donald G. Dunne
*/
public class DemoInsertion extends JaxInsertion {
public static DemoInsertion sawComm = new DemoInsertion(DemoProgram.sawProgram, "COMM", 23477771L, "COMM Insertion");
public static DemoInsertion sawIdm =
new DemoInsertion(DemoProgram.sawProgram, "IDM", 23477772L, "SAW IDM Insertion");
public static DemoInsertion sawFixes =
new DemoInsertion(DemoProgram.sawProgram, "Fixes", 23477773L, "Fixes for SAW");
public static DemoInsertion sawTechApproach =
new DemoInsertion(DemoProgram.sawProgram, "TA", 23477774L, "Tech Approaches for SAW");
public static DemoInsertion cisTechApproach =
new DemoInsertion(DemoProgram.cisProgram, "TA", 23477775L, "Tech Approaches for CIS");
public static DemoInsertion cisAsdf = new DemoInsertion(DemoProgram.cisProgram, "ASDF", 23577776L, "ASDF Insertion");
public static DemoInsertion ver1TechApproach = new DemoInsertion(DemoProgram.ver1, "TA", 23477777L, "TA Insertion");
public static DemoInsertion ver1WetrPhase1 =
new DemoInsertion(DemoProgram.ver1, "WETR Phase 1", 23577778L, "WETR Insertion");
public static DemoInsertion ver2TechApproach =
new DemoInsertion(DemoProgram.ver2, "TA", 23477779L, "WETR Insertion");
public static DemoInsertion ver2WetrPhase1 =
new DemoInsertion(DemoProgram.ver2, "WETR Phase 2", 23577770L, "WETR Phase 2 Insertion");
public static DemoInsertion ver3TechApproach =
new DemoInsertion(DemoProgram.ver3, "TA", 234777711L, "WETR Insertion");
public static DemoInsertion ver3WetrPhase1 =
new DemoInsertion(DemoProgram.ver3, "WETR Phase 3", 235777712L, "WETR Phase 3 Insertion");
private static List<DemoInsertion> insertions;
List<DemoInsertionActivity> activities;
private final DemoProgram program;
public DemoInsertion(DemoProgram program, String name, long uuid, String description) {
this.program = program;
setName(name);
setUuid(uuid);
setActive(true);
this.activities = new ArrayList<>();
this.program.getInsertions().add(this);
setDescription(description);
setProgramUuid(program.getUuid());
if (insertions == null) {
insertions = new LinkedList<>();
}
insertions.add(this);
}
public List<DemoInsertionActivity> getActivities() {
return activities;
}
public DemoProgram getProgram() {
return program;
}
public static List<DemoInsertion> getInsertions() {
return insertions;
}
}
|