interaction.sendAcknowledgement(null); UIntegerList unkIndexList = new UIntegerList(); UIntegerList invIndexList = new UIntegerList(); unkIndexList.add(new UInteger(i)); invIndexList.add(new UInteger(i)); if (!unkIndexList.isEmpty()) { throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList)); if (!invIndexList.isEmpty()) { throw new MALInteractionException(new MALStandardError(COMHelper.INVALID_ERROR_NUMBER, invIndexList));
@Override public ObjectInstancePairList listDefinition(final IdentifierList nameList, final MALInteraction interaction) throws MALException, MALInteractionException { // requirement: 3.7.9.2.1 ObjectInstancePairList outLongLst = new ObjectInstancePairList(); UIntegerList unkIndexList = new UIntegerList(); unkIndexList.clear(); break; unkIndexList.add(new UInteger(index)); continue; } else { if (!unkIndexList.isEmpty()) // requirement: 3.7.11.3.1
/** * This method adds all numbers to the invIndexList, which have a higher * number than the number of the smaller of the two sizes * * @param firstList * @param secondList * @param invIndexList * @return the modified invIndexList */ private UIntegerList getInvalidIndexes(int size1, int size2) { UIntegerList invIndexList = new UIntegerList(); // requirement: 3.5.17.2.g int min = Math.min(size1, size2); int max = Math.max(size1, size2); for (; min < max; min++) { invIndexList.add(new UInteger(min)); } return invIndexList; }
eventBodies = new UIntegerList(hdrlst.size());
@Override public Boolean preCheckAction(ActionInstanceDetails actionDetails, MALInteraction interaction) throws MALInteractionException, MALException { UIntegerList invIndexList = new UIntegerList(); // requirement: 3.2.10.3.2 if (!manager.existsDef(actionDetails.getDefInstId())) { throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, null)); } // requirement: 3.2.10.2.a, 3.2.10.2.b //TODO: check the checkActionInstanceDetails-mehod after spec-update -> issue #99 boolean accepted = manager.checkActionInstanceDetails(actionDetails, invIndexList); // Errors if (!invIndexList.isEmpty()) { // requirement: 3.2.10.3.1 throw new MALInteractionException(new MALStandardError(COMHelper.INVALID_ERROR_NUMBER, invIndexList)); } return accepted; }
if (! requiredCapabilities.equals(other.requiredCapabilities))
public UIntegerList getMissingIndexes() { UIntegerList missingIndexes = new UIntegerList(); long nOfChunks = numberOfChunks.getValue(); for (int i = 0; i < nOfChunks; i++) { if (receivedChunks.get(i) == null) { missingIndexes.add(new UInteger()); } } return missingIndexes; }
new Identifier(NMFProvider.NANOSAT_MO_SUPERVISOR_NAME), domain, new Identifier("*"), null, new Identifier("*"), serviceKey, new UIntegerList()); final ProviderSummaryList supervisorEventServiceConnectionDetails = centralDirectory.getDirectoryStub().lookupProvider(sf); new UShort(0), new UOctet((short) 0)); final ServiceFilter sf2 = new ServiceFilter(new Identifier(NMFProvider.NANOSAT_MO_SUPERVISOR_NAME), domain, new Identifier("*"), null, new Identifier("*"), sk, new UIntegerList()); final ProviderSummaryList supervisorConnections = centralDirectory.getDirectoryStub().lookupProvider(sf2);
UIntegerList invIndexList = new UIntegerList(); boolean unknown = false; if (!invIndexList.isEmpty()) { // requirement: 3.2.9.3.1 manager.getActivityTrackingService().publishExecutionEventSubmitAck(interaction, false, saSource); // requirement: c throw new MALInteractionException(new MALStandardError(COMHelper.INVALID_ERROR_NUMBER, invIndexList));
@Override public void runApp(LongList appInstIds, MALInteraction interaction) throws MALInteractionException, MALException { UIntegerList unkIndexList = new UIntegerList(); UIntegerList invIndexList = new UIntegerList(); unkIndexList.add(new UInteger(index)); // Throw an UNKNOWN error continue; invIndexList.add(new UInteger(index)); // Throw an INVALID error continue; if (!invIndexList.isEmpty()) { throw new MALInteractionException(new MALStandardError(COMHelper.INVALID_ERROR_NUMBER, invIndexList)); if (!unkIndexList.isEmpty()) { throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList)); manager.startAppProcess(new ProcessExecutionHandler(appInstIds.get(i)), interaction); } catch (IOException ex) { UIntegerList intIndexList = new UIntegerList(); intIndexList.add(new UInteger(i)); Logger.getLogger(AppsLauncherManager.class.getName()).log(Level.INFO, "Not able to start the application process...", ex);
@Override public void removeCheck(LongList identityIds, MALInteraction interaction) throws MALInteractionException, MALException { UIntegerList unkIndexList = new UIntegerList(); UIntegerList refErrorIndexList = new UIntegerList(); unkIndexList.clear(); break; tempIdentityIds.add(tempIdentityId); } else { unkIndexList.add(new UInteger(index)); // requirement: 3.5.18.2.d refErrorIndexList.add(new UInteger(index)); continue; if (!unkIndexList.isEmpty()) { // requirement: 3.5.18.3.1 throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList)); if (!refErrorIndexList.isEmpty()) { // requirement: 3.5.18.3.2 throw new MALInteractionException(new MALStandardError(MCHelper.REFERENCED_ERROR_NUMBER, refErrorIndexList));
public static UIntegerList checkForDuplicates(ArchiveDetailsList archiveDetailsList) { UIntegerList dupList = new UIntegerList(); for (int i = 0; i < archiveDetailsList.size() - 1; i++) { if (archiveDetailsList.get(i).getInstId().intValue() == 0) { // Wildcard? Then jump over it continue; } for (int j = i + 1; j < archiveDetailsList.size(); j++) { if (archiveDetailsList.get(i).getInstId().intValue() == archiveDetailsList.get(j).getInstId().intValue()) { dupList.add(new UInteger(j)); } } } return dupList; }
/** * Decodes the value of this object using the provided MALDecoder. * @param decoder decoder - the decoder to use for decoding. * @return Returns this object. * @throws org.ccsds.moims.mo.mal.MALException if any decoding errors are detected. */ public org.ccsds.moims.mo.mal.structures.Element decode(org.ccsds.moims.mo.mal.MALDecoder decoder) throws org.ccsds.moims.mo.mal.MALException { serviceProviderName = decoder.decodeIdentifier(); domain = (org.ccsds.moims.mo.mal.structures.IdentifierList) decoder.decodeElement(new org.ccsds.moims.mo.mal.structures.IdentifierList()); network = decoder.decodeIdentifier(); sessionType = (org.ccsds.moims.mo.mal.structures.SessionType) decoder.decodeNullableElement(org.ccsds.moims.mo.mal.structures.SessionType.LIVE); sessionName = decoder.decodeIdentifier(); serviceKey = (org.ccsds.moims.mo.common.structures.ServiceKey) decoder.decodeElement(new org.ccsds.moims.mo.common.structures.ServiceKey()); requiredCapabilities = (org.ccsds.moims.mo.mal.structures.UIntegerList) decoder.decodeElement(new org.ccsds.moims.mo.mal.structures.UIntegerList()); return this; }
interaction.sendAcknowledgement(); UIntegerList unkIndexList = new UIntegerList(); UIntegerList invIndexList = new UIntegerList(); unkIndexList.add(new UInteger(i)); invIndexList.add(new UInteger(i)); if (!unkIndexList.isEmpty()) { throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList)); if (!invIndexList.isEmpty()) { throw new MALInteractionException(new MALStandardError(COMHelper.INVALID_ERROR_NUMBER, invIndexList));
@Override public void removeAlert(LongList alertIdentityIds, MALInteraction interaction) throws MALInteractionException, MALException { UIntegerList unkIndexList = new UIntegerList(); LongList removalLst = new LongList(); unkIndexList.clear(); break; unkIndexList.add(new UInteger(index)); // requirement: 3.4.12.2.c } else { removalLst.add(identityId); if (!unkIndexList.isEmpty()) { // requirement: 3.4.12.3.1 throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList));
private void publishActionFailureEvent(final UInteger errorNumber, final Long related, final ObjectId source, final MALInteraction interaction, final SingleConnectionDetails connectionDetails) { // requirement: 3.2.5.f final UIntegerList errorNumbers = new UIntegerList(1); errorNumbers.add(errorNumber); // requirement: 3.2.5.c and 3.2.5.d and 3.2.5.e if (this.getEventService() != null) { Long objId = this.getEventService().generateAndStoreEvent( ActionHelper.ACTIONFAILURE_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), errorNumber, related, source, interaction); try { this.getEventService().publishEvent(new URI(""), objId, ActionHelper.ACTIONFAILURE_OBJECT_TYPE, related, source, errorNumbers); } catch (IOException ex) { Logger.getLogger(ActionManager.class.getName()).log(Level.SEVERE, null, ex); } } }
eventBodies = new UIntegerList(hdrlst.size());
interaction.sendAcknowledgement(); UIntegerList unkIndexList = new UIntegerList(); UIntegerList invIndexList = new UIntegerList(); unkIndexList.add(new UInteger(i)); invIndexList.add(new UInteger(i)); if (!unkIndexList.isEmpty()) { throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList)); if (!invIndexList.isEmpty()) { throw new MALInteractionException(new MALStandardError(COMHelper.INVALID_ERROR_NUMBER, invIndexList));