All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.openmanufacturing.sds.aspectmodel.java.DeconstructionSet Maven / Gradle / Ivy

/*
 * Copyright (c) 2021 Robert Bosch Manufacturing Solutions GmbH
 *
 * See the AUTHORS file(s) distributed with this work for additional
 * information regarding authorship.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 *
 * SPDX-License-Identifier: MPL-2.0
 */

package io.openmanufacturing.sds.aspectmodel.java;

import java.util.List;

import io.openmanufacturing.sds.metamodel.Property;
import io.openmanufacturing.sds.metamodel.StructuredValue;

/**
 * Encapsulates a {@link Property} and, if it uses a {@link StructuredValue} characteristic, the corresponding
 * deconstruction rule and the referenced Properties
 */
public class DeconstructionSet {
   private final Property originalProperty;
   private final String deconstructionRule;
   private final List elementProperties;

   public DeconstructionSet( final Property originalProperty, final String deconstructionRule,
         final List elementProperties ) {
      this.originalProperty = originalProperty;
      this.deconstructionRule = deconstructionRule;
      this.elementProperties = elementProperties;
   }

   public Property getOriginalProperty() {
      return originalProperty;
   }

   public String getDeconstructionRule() {
      return deconstructionRule;
   }

   public List getElementProperties() {
      return elementProperties;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy