Here is the Problem Statement.
The Scenario is that I have many Platforms, and each of the platform has certain unique identities, lets consider it as graphic_cards, hardware, software and interfaces.
Each of the Platforms can run a specific set of commands that is compatible with the given platform.
Example:
- Platform 1: Zodiac: GC1, HW1, SW1, INT1
- ....
- Platform n: Star: GCn, HWn, SWn, int n
I need to write a code in such a way that the script analyses which platform it is and runs the commands specific to only that Platform.
So far I have tried this,
class Platform(object):
a = None
B = None
C = None
D = None
def __init__(self, A,B, C, D):
self.A = A
self.B = B
self.C = C
self.D = D
class ZODIAC(Platform):
A = attr.A_map_dict
def __init__(self, A, B, C, D):
super(ZODIAC, self).__init__(A, B, C, D)