| /******************************************************************************* |
| * Copyright (C) 2021 the Eclipse BaSyx Authors |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| ******************************************************************************/ |
| package org.eclipse.basyx.aas.restapi.api; |
| |
| import org.eclipse.basyx.aas.metamodel.api.IAssetAdministrationShell; |
| import org.eclipse.basyx.submodel.metamodel.api.reference.IReference; |
| |
| /** |
| * Specifies overall AAS API |
| * |
| * @author schnicke |
| * |
| */ |
| public interface IAASAPI { |
| /** |
| * |
| * @return the AAS |
| */ |
| public IAssetAdministrationShell getAAS(); |
| |
| /** |
| * Adds a submodel reference to the AAS |
| * |
| * @param submodel |
| * the reference of the submodel to-be-added |
| */ |
| public void addSubmodel(IReference submodel); |
| |
| /** |
| * Removes a submodel reference from the AAS |
| * |
| * @param id |
| * the unique id of the submodel to-be-deleted |
| */ |
| public void removeSubmodel(String id); |
| } |
| |