esa.mo.nmf.provider.MCSoftwareSimulatorAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nanosat-monolithic Show documentation
Show all versions of nanosat-monolithic Show documentation
NanoSat MO Framework for OPS-SAT Software Simulator
The newest version!
/* ----------------------------------------------------------------------------
* Copyright (C) 2015 European Space Agency
* European Space Operations Centre
* Darmstadt
* Germany
* ----------------------------------------------------------------------------
* System : ESA NanoSat MO Framework
* ----------------------------------------------------------------------------
* Licensed under the European Space Agency Public License, Version 2.0
* You may not use this file except in compliance with the License.
*
* Except as expressly set forth in this License, the Software is provided to
* You on an "as is" basis and without warranties of any kind, including without
* limitation merchantability, fitness for a particular purpose, absence of
* defects or errors, accuracy or non-infringement of intellectual property rights.
*
* See the License for the specific language governing permissions and
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.nmf.provider;
import esa.mo.nmf.MCRegistration;
import esa.mo.nmf.MonitorAndControlNMFAdapter;
import org.ccsds.moims.mo.mal.provider.MALInteraction;
import org.ccsds.moims.mo.mal.structures.Attribute;
import org.ccsds.moims.mo.mal.structures.Identifier;
import org.ccsds.moims.mo.mal.structures.IdentifierList;
import org.ccsds.moims.mo.mal.structures.UInteger;
import org.ccsds.moims.mo.mc.parameter.structures.ParameterRawValueList;
import org.ccsds.moims.mo.mc.structures.AttributeValueList;
/**
* Specific Software Simulator Monitoring and Control
*
* @author Cesar Coelho
*/
public class MCSoftwareSimulatorAdapter extends MonitorAndControlNMFAdapter {
@Override
public void initialRegistrations(MCRegistration registrationObject) {
// Nothing to be done
}
@Override
public Attribute onGetValue(Identifier identifier, Byte rawType) {
return null;
}
@Override
public Boolean onSetValue(IdentifierList identifiers, ParameterRawValueList values) {
return false; // to confirm that no variable was set
}
@Override
public UInteger actionArrived(Identifier name, AttributeValueList attributeValues,
Long actionInstanceObjId, boolean reportProgress, MALInteraction interaction) {
return new UInteger(1); // Action service not integrated
}
}