blob: 0ca30e7879e493723e913f8b3449c2578559dd6d [file] [log] [blame]
/*******************************************************************************
* 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.examples.snippets.aas;
import org.eclipse.basyx.aas.metamodel.map.AssetAdministrationShell;
import org.eclipse.basyx.aas.metamodel.map.parts.Asset;
import org.eclipse.basyx.submodel.metamodel.api.identifier.IIdentifier;
/**
* Snippet that showcases how to create an AssetAdministrationShell
* with only the mandatory attributes.
*
* @author conradi
*
*/
public class CreateAAS {
/**
* Creates a new AAS
*
* @param idShort the idShort of the AAS to be created
* @param aasIdentifier the Identifier of the AAS to be created
* @param asset the asset to be contained in the new AAS
* @return the newly created AAS
*/
public static AssetAdministrationShell createAAS(String idShort, IIdentifier aasIdentifier, Asset asset) {
// Create a new AssetAdministrationShell object
AssetAdministrationShell aas = new AssetAdministrationShell(idShort, aasIdentifier, asset);
return aas;
}
}