name

property DCMotor.name: str

Name of the DC motor. It must be a non-empty str.

It must be a unique name, not shared by other elements in the powertrain elements.

Once set at the DC motor instantiation, it cannot be changed afterward.

Returns

str

Name of the DC motor.

Raises

TypeError

If name is not a str.

ValueError

If name is an empty str.