dart_aas 0.0.3 copy "dart_aas: ^0.0.3" to clipboard
dart_aas: ^0.0.3 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
150
points
169
downloads

Publisher

verified publishermmi.rwth-aachen.de

Weekly Downloads

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

Homepage
Repository

Documentation

API reference

License

LGPL-3.0 (license)

Dependencies

collection, http, intl, meta

More

Packages that depend on dart_aas