/** @param pEquipment mobile equipment */ public EquipmentCollectDataTask(AbstractLoaderCommunicationEquipment pEquipment) { super(pEquipment); // Store U8500 equipment object mobileEquipment = pEquipment; // Initialize task result with default information resultCode = ERROR_NONE; resultMessage = CommandName.getCLISyntax(getId()) + COMPLETED; }
/** * Constructor. * * @param equipment Equipment interface */ public DummyEquipmentSendRawDataTask(DummyEquipment equipment) { super(equipment); // Store equipment object mobileEquipment = equipment; // Initialize task result with default information resultCode = ERROR_NONE; resultMessage = CommandName.getCLISyntax(getId()) + COMPLETED; }
/** {@inheritDoc} */ @Override public boolean setParameters(Collection<String> input) { if (input.size() == 0) { // TODO input size != 1 System.out.println("Error! Target volume path must be specyfied!"); return false; } String[] args = (String[]) input.toArray(new String[0]); FTCPath path = FTCPathParser.parse(context, args[0]); setCommand( new String[] { CommandName.getCLISyntax(CommandName.FILE_SYSTEM_VOLUME_PROPERTIES.name()) .toLowerCase(Locale.getDefault()), "-" + AbstractCommand.PARAMETER_EQUIPMENT_ID, path.getPrefix(), "-" + AbstractCommand.PARAMETER_DEVICE_PATH, path.toString() }); return true; }