dart_aas 0.0.2 copy "dart_aas: ^0.0.2" to clipboard
dart_aas: ^0.0.2 copied to clipboard

Dart library implementing Part 1, 2, and 3a of the Asset Administration Shell

example/lib/example.dart

import 'package:dart_aas/dart_aas.dart';
import 'package:uuid/data.dart';
import 'package:uuid/rng.dart';
import 'package:uuid/uuid.dart';

AssetAdministrationShell createSampleAAS() {
  final uuid = Uuid(goptions: GlobalOptions(CryptoRNG())).v8g();
  return AssetAdministrationShell(
    modelType: ModelType.assetAdministrationShell,
    id: 'urn:s3i:shell:uuid:$uuid',
    idShort: 'ExampleAAS',
    assetInformation: AssetInformation(
      assetKind: AssetKind.instance,
      globalAssetId: 'urn:s3i:asset:uuid:$uuid',
    ),
    submodels: [
      Reference(
        type: ReferenceTypes.modelReference,
        keys: [
          Key(
            type: KeyTypes.submodel,
            value:
                'urn:s3i:shell:${Uuid(goptions: GlobalOptions(CryptoRNG())).v8g()}/horizontalScaffoldManeuver',
          ),
        ],
      ),
    ],
  );
}
0
likes
0
points
57
downloads

Publisher

verified publishermmi.rwth-aachen.de

Weekly Downloads

Dart library implementing Part 1, 2, and 3a of the Asset Administration Shell

Homepage
Repository

License

unknown (license)

Dependencies

collection, http, intl, meta

More

Packages that depend on dart_aas