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

Implementation of Part 1, 2, and 3a of the Asset Administration Shell spec

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

Implementation of Part 1, 2, and 3a of the Asset Administration Shell spec

Homepage
Repository

License

unknown (license)

Dependencies

collection, http, intl, meta, uuid

More

Packages that depend on dart_aas