MachineLearningSystemComponent.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. #include <MachineLearning/IMachineLearning.h>
  11. namespace MachineLearning
  12. {
  13. class MachineLearningSystemComponent
  14. : public AZ::Component
  15. , protected MachineLearningRequestBus::Handler
  16. // , public AZ::Interface<IMachineLearning>::Registrar
  17. {
  18. public:
  19. AZ_COMPONENT_DECL(MachineLearningSystemComponent);
  20. static void Reflect(AZ::ReflectContext* context);
  21. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  22. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  23. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  24. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  25. MachineLearningSystemComponent();
  26. ~MachineLearningSystemComponent();
  27. protected:
  28. //! AZ::Component interface
  29. //! @{
  30. void Init() override;
  31. void Activate() override;
  32. void Deactivate() override;
  33. //! @}
  34. //! IMachineLearning interface
  35. //! @{
  36. void RegisterModel(INeuralNetworkPtr model) override;
  37. void UnregisterModel(INeuralNetworkPtr model) override;
  38. ModelSet& GetModelSet() override;
  39. //! @}
  40. private:
  41. ModelSet m_registeredModels;
  42. };
  43. }