Commit 28e88d4b authored by Nico Mack's avatar Nico Mack

Minor Refactoring of CPS connector class to avoid namespace clash with

newly introduced IOT connector class
parent f1d9d6c7
......@@ -37,7 +37,7 @@ import java.lang.reflect.InvocationTargetException;
* @since 2.2
* @version 2.3.0
*/
public class ConnectorBootstrapper {
public class CpsConnectorBootstrapper {
/**
......
......@@ -21,7 +21,7 @@
package lu.list.itis.dkd.tui.cps.system;
import lu.list.itis.dkd.dbc.annotation.NonNullByDefault;
import lu.list.itis.dkd.tui.bootstrapping.ConnectorBootstrapper;
import lu.list.itis.dkd.tui.bootstrapping.CpsConnectorBootstrapper;
import lu.list.itis.dkd.tui.cps.InputChangeListener;
import lu.list.itis.dkd.tui.cps.InputEvent;
import lu.list.itis.dkd.tui.cps.Phenomenon;
......@@ -493,7 +493,7 @@ public class EquationSystemBuilder {
private void extractConnectors(List<Element> connectorElements) throws EquationSystemException {
try {
for (Element connectorElement : connectorElements) {
Connector<?> connector = ConnectorBootstrapper.buildConnectorFromElement(connectorElement, null, null);
Connector<?> connector = CpsConnectorBootstrapper.buildConnectorFromElement(connectorElement, null, null);
connector.connect();
LOGGER.info("{} {} connected!", connector.getClass().getSimpleName(), connector.getName()); //$NON-NLS-1$
connectors.put(connector.getName(), connector);
......
......@@ -26,9 +26,9 @@ import lu.list.itis.dkd.tui.cps.system.connector.builder.BaseConnectorBuilder;
public abstract class Connector<C> {
private String name;
private boolean connected;
private C connection;
protected String name;
protected boolean connected;
protected C connection;
// ---------------------------------------------------------------------------
// ***************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment