using Hast.Common.Interfaces; namespace Hast.Transformer.Vhdl.ArchitectureComponents; /// /// Creates new objects. /// public interface IMemberStateMachineFactory : IDependency { /// /// Creates a new object. /// /// /// The name of the state machine, i.e. the name of the member to create the state machine for. Use the real name, /// not an extended VHDL ID. /// IMemberStateMachine CreateStateMachine(string name); } public class MemberStateMachineFactory : IMemberStateMachineFactory { public IMemberStateMachine CreateStateMachine(string name) => new MemberStateMachine(name); }