Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create actor factory #26

Merged
merged 6 commits into from
Oct 24, 2022
Merged

Create actor factory #26

merged 6 commits into from
Oct 24, 2022

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!

paseos/actors/actor_builder.py Outdated Show resolved Hide resolved
paseos/actors/actor_builder.py Outdated Show resolved Hide resolved
paseos/actors/base_actor.py Outdated Show resolved Hide resolved
paseos/actors/spacecraft_actor.py Outdated Show resolved Hide resolved
paseos/paseos.py Outdated Show resolved Hide resolved
paseos/paseos.py Outdated Show resolved Hide resolved
paseos/paseos.py Outdated Show resolved Hide resolved
paseos/actors/actor_builder.py Show resolved Hide resolved
@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. :)

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