Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Refactor Subsystem Factories to Have Base Class #63

Open
stulewin opened this issue Mar 11, 2022 · 0 comments
Open

Refactor Subsystem Factories to Have Base Class #63

stulewin opened this issue Mar 11, 2022 · 0 comments
Assignees
Labels
refactor Better implementation of something

Comments

@stulewin
Copy link
Contributor

The loading of the implementation class can be done similar to the way Command loading is done now, and put in a base class to minimize the amount of code (and copy and paste errors).

/** Name of our robot implementation */
protected static final String robotImplName;

static {
    PKProperties props = PropertiesManager.getInstance().getProperties(Robot.name);
    robotImplName = props.getString(Robot.implementation);
}
@stulewin stulewin added the refactor Better implementation of something label Mar 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
refactor Better implementation of something
Projects
None yet
Development

No branches or pull requests

2 participants