Debian Codegraph @

bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/p2/operations/Remedy.java

raw
1 /*******************************************************************************
2 * Copyright (c) 2013, 2017 Red Hat, Inc. and others
3 *
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
8 *
9 * SPDX-License-Identifier: EPL-2.0
10 *
11 * Contributors:
12 * Red Hat, Inc. - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.equinox.p2.operations;
15
16 import java.util.ArrayList;
17 import java.util.List;
18 import org.eclipse.equinox.internal.p2.director.ProfileChangeRequest;
19 import org.eclipse.equinox.p2.planner.IProfileChangeRequest;
20
21 /**
22 * <p>
23 * <strong>EXPERIMENTAL</strong>. This class or interface has been added as
24 * part of a work in progress. There is no guarantee that this API will
25 * work or that it will remain the same. Please do not use this API without
26 * consulting with the p2 team.
27 * </p>
28 * @since 2.3
29 * @noreference
30 */
31 public class Remedy {
32
33 private RemedyConfig config;
34 private ProfileChangeRequest request;
35 private int beingInstalledRelaxedWeight;
36 private int installationRelaxedWeight;
37 private IProfileChangeRequest originalRequest;
38 private List<RemedyIUDetail> iusDetails;
39
40 public List<RemedyIUDetail> getIusDetails() {
41 return iusDetails;
42 }
43
44 public IProfileChangeRequest getOriginalRequest() {
45 return originalRequest;
46
47 }
48
49 public Remedy(IProfileChangeRequest originalRequest) {
50 this.originalRequest = originalRequest;
51 this.iusDetails = new ArrayList<>();
52 }
53
54 public RemedyConfig getConfig() {
55 return config;
56 }
57
58 public void setConfig(RemedyConfig config) {
59 this.config = config;
60 }
61
62 public ProfileChangeRequest getRequest() {
63 return request;
64 }
65
66 public void setRequest(ProfileChangeRequest request) {
67 this.request = request;
68 }
69
70 public int getBeingInstalledRelaxedWeight() {
71 return beingInstalledRelaxedWeight;
72 }
73
74 public void setBeingInstalledRelaxedWeight(int beingInstalledRelaxedWeight) {
75 this.beingInstalledRelaxedWeight = beingInstalledRelaxedWeight;
76 }
77
78 public int getInstallationRelaxedWeight() {
79 return installationRelaxedWeight;
80 }
81
82 public void setInstallationRelaxedWeight(int installationRelaxedWeight) {
83 this.installationRelaxedWeight = installationRelaxedWeight;
84 }
85
86 public void addRemedyIUDetail(RemedyIUDetail iuDetail) {
87 iusDetails.add(iuDetail);
88 }
89
90 }