Skip to content

Create actor factory#26

Merged
gomezzz merged 6 commits intomainfrom
Create-ActorFactory
Oct 24, 2022
Merged

Create actor factory#26
gomezzz merged 6 commits intomainfrom
Create-ActorFactory

Conversation

@gomezzz
Copy link
Collaborator

@gomezzz gomezzz commented Oct 21, 2022

Description

Summary of changes

  • Added actorBuilder to create modular actors.
  • Added various getters
  • Refactored actors to move static action code to separate files

Resolved Issues

How Has This Been Tested?

With updated tests.

Related Pull Requests

N/A

@gomezzz gomezzz added tests Anything related to the tests feature implementing a new feature user-facing Anything that users can interact with labels Oct 21, 2022
@gomezzz gomezzz requested a review from johanos1 October 21, 2022 15:09

self._communication_devices = DotMap(_dynamic=False)

def get_local_time(self) -> pk.epoch:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed everywhere :) forgot about this feature, thanks for pointing out!

@gomezzz gomezzz requested a review from johanos1 October 24, 2022 13:32
Copy link
Collaborator

@johanos1 johanos1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. :)

"""Clears the list of known actors."""
self._known_actors = {}

def remove_known_actor(self, actor_name: str):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now we are only distinguishing actors based on their names. I think it would make sense to make this a bit more general and use the a hash of the static features in the actors. I will write an issue for this.

@gomezzz gomezzz merged commit 2f2d7c3 into main Oct 24, 2022
@gomezzz gomezzz deleted the Create-ActorFactory branch October 24, 2022 14:35
@gomezzz gomezzz mentioned this pull request Oct 24, 2022
1 task
@GabrieleMeoni GabrieleMeoni mentioned this pull request Nov 10, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature implementing a new feature tests Anything related to the tests user-facing Anything that users can interact with

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removal of actors Create ActorFactory

2 participants