package js import ( "src.dualinventive.com/go/devsim/simulator" ) // Driver for the js simulator type Driver struct{} // DriverName for the js simulator const DriverName = "js" func init() { simulator.Register(DriverName, &Driver{}) } // Name gets the name of the local agent driver func (d *Driver) Name() string { return DriverName } // Valid checks if the template information contains enough data to start the simulator func (d *Driver) Valid(info simulator.Info) bool { return true } // New create a new js simulator with name func (d *Driver) New(m simulator.Model, info simulator.Info) (simulator.Simulator, error) { return newSimulator(m, info) } var _ simulator.Driver = &Driver{}