Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.target.devicemanager.common.DeviceConnector;
import com.target.devicemanager.common.DevicePower;
import com.target.devicemanager.common.DynamicDevice;
import com.target.devicemanager.common.SimulatedDynamicDevice;
import com.target.devicemanager.components.check.simulator.SimulatedJposMicr;
import com.target.devicemanager.configuration.ApplicationConfig;
import jpos.MICR;
Expand Down Expand Up @@ -32,7 +33,7 @@ public MicrManager getMicrManager() {
JposEntryRegistry deviceRegistry = JposServiceLoader.getManager().getEntryRegistry();

if (applicationConfig.IsSimulationMode()) {
dynamicMicr = new DynamicDevice<>(simulatedMicr, new DevicePower(), new DeviceConnector<>(simulatedMicr, deviceRegistry));
dynamicMicr = new SimulatedDynamicDevice<>(simulatedMicr, new DevicePower(), new DeviceConnector<>(simulatedMicr, deviceRegistry));
} else {
MICR micr = new MICR();
dynamicMicr = new DynamicDevice<>(micr, new DevicePower(), new DeviceConnector<>(micr, deviceRegistry));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ public boolean getDeviceEnabled() {
return true;
}

@Override
public boolean getClaimed() {
return true;
}

@Override
public int getState() {
return simulatorState == SimulatorState.ONLINE ? JposConst.JPOS_S_IDLE : JposConst.JPOS_S_CLOSED;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public LineDisplayManager getLineDisplayManager() {
JposEntryRegistry deviceRegistry = JposServiceLoader.getManager().getEntryRegistry();

if (applicationConfig.IsSimulationMode()) {
dynamicLineDisplay = new DynamicDevice<>(simulatedLineDisplay, new DevicePower(), new DeviceConnector<>(simulatedLineDisplay, deviceRegistry));
dynamicLineDisplay = new SimulatedDynamicDevice<>(simulatedLineDisplay, new DevicePower(), new DeviceConnector<>(simulatedLineDisplay, deviceRegistry));
} else {
LineDisplay lineDisplay = new LineDisplay();
dynamicLineDisplay = new DynamicDevice<>(lineDisplay, new DevicePower(), new DeviceConnector<>(lineDisplay, deviceRegistry ));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ public boolean getDeviceEnabled() {
return true;
}

@Override
public boolean getClaimed() {
return true;
}

@Override
public int getCapPowerReporting() {
return JPOS_PR_STANDARD;
Expand Down