Package jmri.jmrix.can.cbus.simulator
Class CbusSimulatedModuleProvider
java.lang.Object
jmri.jmrix.can.cbus.simulator.CbusSimulatedModuleProvider
- All Implemented Interfaces:
JmriServiceProviderInterface
- Direct Known Subclasses:
CbusMax,MergCanmiosvo,MergCanpan,SprogPiSprog3,SprogPiSprog3Plus
public abstract class CbusSimulatedModuleProvider
extends Object
implements JmriServiceProviderInterface
Pane for configuring events in a CBUS module
Definition of objects to handle configuring a CBUS module.
Implementing classes must be registered as service providers of this
type to be recognized and usable.
General design documentation is available on the Structure of External System Connections page.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidconfigureDummyNode(CbusNode node) For a given CbusDummyNode, configure it to the Simulation.protected CbusDummyNodecreateNewDummyNode(CanSystemConnectionMemo memo, int nodeNumber) static final Collection<CbusSimulatedModuleProvider>Get all available instances as anCollections.unmodifiableCollection(java.util.Collection<? extends T>).abstract intGet the Manufacturer ID.abstract intGet the Manufacturer Module ID.Descriptive String of Module Type.getNewDummyNode(CanSystemConnectionMemo memo, int nodeNumber) Create a new CbusDummyNode of the implementing class type.static final CbusSimulatedModuleProvidergetProviderByName(String name) Get a module provider from a module name.Descriptive Tooltip for Module Simulation.booleanChecks if a Node Manufacturer and Module ID matches this module.
-
Constructor Details
-
CbusSimulatedModuleProvider
public CbusSimulatedModuleProvider()
-
-
Method Details
-
getManufacturerId
Get the Manufacturer ID.- Returns:
- manufacturer ID code.
-
getModuleId
Get the Manufacturer Module ID.- Returns:
- manufacturer Module ID code.
-
configureDummyNode
For a given CbusDummyNode, configure it to the Simulation. This may include Node Parameters, Node Variables, events and event variables.- Parameters:
node- the Node to set to.
-
getModuleType
Descriptive String of Module Type. For use in selection menus etc.- Returns:
- descriptive string of simulated module.
-
getToolTipText
Descriptive Tooltip for Module Simulation. For use in selection menus etc.- Returns:
- tooltip for the module.
-
getNewDummyNode
Create a new CbusDummyNode of the implementing class type.- Parameters:
nodeNumber- Initial Node Number.memo- System Connection to use.- Returns:
- new Dummy Node of implementing class type.
-
createNewDummyNode
-
matchesManuAndModuleId
Checks if a Node Manufacturer and Module ID matches this module.- Parameters:
nd- the Node to test against, can be null.- Returns:
- true if they match, else false.
-
getProviderByName
Get a module provider from a module name.- Parameters:
name- of the module- Returns:
- the module provider, null if not known
-
getInstancesCollection
Get all available instances as anCollections.unmodifiableCollection(java.util.Collection<? extends T>).- Returns:
- unmodifiable collection.
-