![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <string.h>#include <stdio.h>#include <stdarg.h>#include <foreign/fmi/fmi2Functions.h>#include "sumo2fmi_bridge.h"#include "libsumocpp2c.h"Go to the source code of this file.
Macros | |
| #define | UNUSED_PARAMETER(x) |
Definition in file fmi2Functions.c.
| #define UNUSED_PARAMETER | ( | x | ) |
Definition at line 37 of file fmi2Functions.c.
Referenced by MSCFModel_Wiedemann::_v(), MSLCM_SL2015::_wantsChangeSublane(), MSStageMoving::activateEntryReminders(), MSTLLogicControl::WAUTSwitchProcedure::adaptLogic(), SAXWeightsHandler::EdgeFloatTimeLineRetriever::addEdgeRelWeight(), SAXWeightsHandler::EdgeFloatTimeLineRetriever::addEdgeWeight(), MSCriticalFollowerDistanceInfo::addLeader(), MSCriticalFollowerDistanceInfo::addLeader(), MSLeaderDistanceInfo::addLeader(), NIImporter_OpenDrive::addOffsets(), MSTractionSubstation::addOverheadWireInnerSegmentToCircuit(), VTypesHandler::addPersonTrip(), VTypesHandler::addRide(), VTypesHandler::addStop(), SAXWeightsHandler::EdgeFloatTimeLineRetriever::addTazRelWeight(), VTypesHandler::addTranship(), VTypesHandler::addTransport(), SUMORouteHandler::addTransportable(), VTypesHandler::addWalk(), MSCFModel::applyHeadwayAndSpeedDifferencePerceptionErrors(), MSCFModel::applyHeadwayPerceptionError(), MSCFModel::applyStartupDelay(), MSPModel::blockedAtDist(), GUIDialog_ViewSettings::build3DFrame(), GNEViewNetHelper::VehicleOptions::buildVehicleOptionsMenuChecks(), GNEViewNetHelper::VehicleTypeOptions::buildVehicleTypeOptionsMenuChecks(), MSOffTrafficLightLogic::changeStepAndDuration(), MSRailCrossing::changeStepAndDuration(), MSRailSignal::changeStepAndDuration(), MSTransportable::checkAccess(), MSAbstractLaneChangeModel::checkChangeBeforeCommitting(), MSLaneChangerSublane::checkChangeOpposite(), MSRouteProbe::clearState(), VTypesHandler::closeRoute(), combCallback(), combineCallback(), NBOwnTLDef::computeLogicAndConts(), RODFNet::computeRoutesFor(), MSAbstractLaneChangeModel::decideDirection(), GNEReferenceCounter::decRef(), MSDetectorFileOutput::detectorUpdate(), NIImporter_OpenDrive::discretizeOffsets(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), GUIBaseVehicle::drawAction_drawVehicleBrakeLight(), GUITriggeredRerouter::drawGL(), GUIGlObject::drawGLAdditional(), MSAbstractLaneChangeModel::endLaneChangeManeuver(), MSCFModel::estimateArrivalTime(), MSPModel_JuPedSim::execute(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), NIImporter_OpenDrive::findWidthSplit(), fmi2CancelStep(), fmi2DeSerializeFMUstate(), fmi2DoStep(), fmi2EnterInitializationMode(), fmi2FreeFMUstate(), fmi2GetBoolean(), fmi2GetBooleanStatus(), fmi2GetDirectionalDerivative(), fmi2GetFMUstate(), fmi2GetIntegerStatus(), fmi2GetReal(), fmi2GetRealOutputDerivatives(), fmi2GetRealStatus(), fmi2GetStatus(), fmi2GetStringStatus(), fmi2Instantiate(), fmi2Reset(), fmi2SerializedFMUstateSize(), fmi2SerializeFMUstate(), fmi2SetBoolean(), fmi2SetFMUstate(), fmi2SetInteger(), fmi2SetReal(), fmi2SetRealInputDerivatives(), fmi2SetupExperiment(), fmi2Terminate(), MSCFModel_CACC::followSpeed(), MSCFModel_CC::followSpeed(), MSCFModel_W99::followSpeed(), MSDriveWay::formatVisitedMap(), NIImporter_OpenDrive::geomFromArc(), NIImporter_OpenDrive::geomFromLine(), NIImporter_OpenDrive::geomFromParamPoly(), NIImporter_OpenDrive::geomFromPoly(), NIImporter_OpenDrive::geomFromSpiral(), RODFDetectorCon::getAggFlowFor(), MSMeanData::getAttributeValue(), MSMeanData::MeanDataValues::getAttributeValue(), MSTrafficLightLogic::getBlockingDriveWays(), MSTrafficLightLogic::getBlockingVehicles(), MEVehicle::getBrakeGap(), SUMOVTypeParameter::getDefaultDesAccelProfile(), SUMOVTypeParameter::getDefaultMaxAccelProfile(), MSRailSignal::LinkInfo::getDriveWay(), GUIGlObject::getExaggeration(), MSInternalJunction::getFoeInternalLanes(), MSInternalJunction::getFoeLinks(), MSJunctionLogic::getFoesFor(), MSBaseVehicle::getFollower(), MSRoutingEngine::getIntermodalRouterTT(), MSJunctionLogic::getIsCont(), MSBaseVehicle::getLeader(), MSStageTranship::getMaxSpeed(), GUISUMOAbstractView::getMeanDataAttrs(), GUIGlChildWindow::getObjectIDs(), MSCFModel::getParameter(), MSTrafficLightLogic::getPriorityVehicles(), FirstOrderLagModel::getRealAcceleration(), RealisticEngineModel::getRealBrakingAcceleration(), MSTrafficLightLogic::getRequestedDriveWay(), MSJunctionLogic::getResponseFor(), MSBaseVehicle::getRightSideOnEdge(), MSTrafficLightLogic::getRivalVehicles(), MSRoutingEngine::getRouterTT(), MSStageTranship::getStageDescription(), MSStageTrip::getStageDescription(), MSStageWaiting::getStageDescription(), MSStageWalking::getStageDescription(), IntermodalEdge< E, L, N, V >::getSuccessors(), GUIGlObject::getTypeParameterWindow(), FlippedEdge< E, N, V >::getViaSuccessors(), IntermodalEdge< E, L, N, V >::getViaSuccessors(), NBEdge::Connection::getViaSuccessors(), ReversedEdge< E, V >::getViaSuccessors(), MEVehicle::getWaitingTime(), NBHeightMapper::getZ(), MSBaseVehicle::handleCollisionStop(), MSPModel::hasPedestrians(), GNEReferenceCounter::incRef(), NBNode::indirectLeftShape(), MSLCM_LC2013::inform(), MSLCM_SL2015::inform(), MSCFModel_CC::insertionFollowSpeed(), MSCFModel_W99::interactionGap(), MSCFModel_Wiedemann::interactionGap(), ROEdge::isConnectedTo(), LandmarkLookupTable< E, V, M >::LandmarkLookupTable(), PCLoaderArcView::load(), NBHeightMapper::loadShapeFile(), MSPModel::loadState(), MSStage::loadState(), NBHeightMapper::loadTiff(), MSCFModel_EIDM::maxNextSafeMin(), MFXSingleEventThread::MFXSingleEventThread(), FXEX::MFXThreadEvent::MFXThreadEvent(), MSPModel_Striping::moveInDirectionOnLane(), MSTransportableStateAdapter::moveTo(), MSPModel_Striping::PState::moveToNextLane(), MSTransportableStateAdapter::moveToXY(), MSPModel_NonInteracting::MSPModel_NonInteracting(), MSLCM_SL2015::mustOvertakeStopped(), NBLoadedSUMOTLDef::myCompute(), NIImporter_DlrNavteq::NamesHandler::NamesHandler(), MSPModel::nextBlocking(), NIImporter_DlrNavteq::NodesHandler::NodesHandler(), MSDevice_Bluelight::notifyEnter(), MSDevice_SSM::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSMoveReminder::notifyEnter(), MSMoveReminder::notifyIdle(), MSDevice_Bluelight::notifyLeave(), MSDevice_ElecHybrid::notifyLeave(), MSDevice_SSM::notifyLeave(), MSDriveWay::notifyLeave(), MSMoveReminder::notifyLeave(), MSMoveReminder::notifyLeaveBack(), MSDevice_Bluelight::notifyMove(), MSDevice_SSM::notifyMove(), MSMoveReminder::notifyMove(), MSDevice_ElecHybrid::notifyMoveInternal(), MSMoveReminder::notifyMoveInternal(), MSMoveReminder::notifyReroute(), FXEX::MFXThreadEvent::onThreadSignal(), MFXSingleEventThread::onThreadSignal(), VTypesHandler::openFlow(), VTypesHandler::openRoute(), VTypesHandler::openRouteDistribution(), VTypesHandler::openRouteFlow(), VTypesHandler::openTrip(), VTypesHandler::openVehicleTypeDistribution(), NBNode::edge_by_direction_sorter::operator()(), OutputDevice_File::OutputDevice_File(), NLTriggerBuilder::parseAndBuildOverheadWireClamp(), RGBColor::parseColorReporting(), MSCFModel::patchSpeedBeforeLC(), MSCFModel_KraussOrig1::patchSpeedBeforeLC(), MSCFModel_PWag2009::patchSpeedBeforeLC(), NBTrafficLightDefinition::removeConnection(), Node2EdgeRouter< E, N, V, M >::reset(), SUMOAbstractRouter< MSEdge, SUMOVehicle >::reset(), MSMeanData::resetOnly(), MSLaneChanger::resolveDeadlock(), GUISUMOAbstractView::saveFrame(), GUIViewTraffic::saveFrame(), MSStage::saveState(), MSTransportableStateAdapter::saveState(), GUIMainWindow::sendBlockingEvent(), AFRouter< E, N, V, M >::setBulkMode(), Node2EdgeRouter< E, N, V, M >::setBulkMode(), OutputFormatter::setExpectedAttributes(), MSCFModel::setImperfection(), MSStage::setOrigin(), FirstOrderLagModel::setParameter(), FirstOrderLagModel::setParameter(), MSAbstractLaneChangeModel::setParameter(), MSCFModel::setParameter(), MSDevice::setParameter(), MSDevice_SSM::setParameter(), MSDevice_Taxi::setParameter(), RealisticEngineModel::setParameter(), MsgHandler::setupI18n(), GUIDialog_EditViewport::setValues(), MSCalibrator::CalibratorCommand::shiftTime(), MSTrafficLightLogic::SwitchCommand::shiftTime(), NBTrafficLightDefinition::shiftTLConnectionLaneIndex(), FXEX::MFXThreadEvent::signal(), FXEX::MFXThreadEvent::signal(), MFXSingleEventThread::signal(), MFXSingleEventThread::signal(), MSAbstractLaneChangeModel::sublaneChangeCompleted(), toString(), toString(), toString(), toString(), toString< FringeType >(), toString< InsertionCheck >(), toString< LaneChangeAction >(), toString< LaneChangeModel >(), toString< LaneSpreadFunction >(), toString< LatAlignmentDefinition >(), toString< LinkDirection >(), toString< LinkState >(), toString< ParkingType >(), toString< PersonMode >(), toString< RightOfWay >(), toString< RoundaboutType >(), toString< SUMOVehicleClass >(), toString< SumoXMLAttr >(), toString< SumoXMLEdgeFunc >(), toString< SumoXMLNodeType >(), toString< SumoXMLTag >(), toString< TrafficLightLayout >(), toString< TrafficLightType >(), NIImporter_DlrNavteq::TrafficlightsHandler::TrafficlightsHandler(), MSStageTrip::tripInfoOutput(), NBNode::turnFoes(), MSLCM_SL2015::updateCFRelated(), GUIDialog_ViewSettings::updateColorRanges(), MSAbstractLaneChangeModel::updateExpectedSublaneSpeeds(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSAbstractLaneChangeModel::updateSafeLatDist(), MSRailSignalControl::updateSignals(), MSAbstractLaneChangeModel::wantsChange(), MSLCM_DK2008::wantsChange(), MSAbstractLaneChangeModel::wantsChangeSublane(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSBaseVehicle::wasRemoteControlled(), NWWriter_OpenDrive::writeInternalEdge(), OutputFormatter::writePadding(), OutputFormatter::writePreformattedTag(), OutputFormatter::writeXMLHeader(), and MSInstantInductLoop::writeXMLOutput().
| fmi2Status fmi2CancelStep | ( | fmi2Component | c | ) |
Definition at line 439 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2DeSerializeFMUstate | ( | fmi2Component | c, |
| const fmi2Byte | serializedState[], | ||
| size_t | size, | ||
| fmi2FMUstate * | FMUstate ) |
Definition at line 378 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2DoStep | ( | fmi2Component | c, |
| fmi2Real | currentCommunicationPoint, | ||
| fmi2Real | communicationStepSize, | ||
| fmi2Boolean | noSetFMUStatePriorToCurrentPoint ) |
Definition at line 426 of file fmi2Functions.c.
References fmi2Error, sumo2fmi_step(), and UNUSED_PARAMETER.
| fmi2Status fmi2EnterInitializationMode | ( | fmi2Component | c | ) |
Definition at line 169 of file fmi2Functions.c.
References fmi2OK, and UNUSED_PARAMETER.
| fmi2Status fmi2ExitInitializationMode | ( | fmi2Component | c | ) |
Definition at line 177 of file fmi2Functions.c.
References fmi2OK, libsumo_load(), ModelInstance::libsumoCallOptions, and sumo2fmi_logEvent().
| fmi2Status fmi2FreeFMUstate | ( | fmi2Component | c, |
| fmi2FMUstate * | FMUstate ) |
Definition at line 354 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| void fmi2FreeInstance | ( | fmi2Component | c | ) |
Definition at line 127 of file fmi2Functions.c.
References ModelInstance::bufferArray, ModelInstance::bufferArrayLength, ModelInstance::freeMemory, ModelInstance::getterParameters, ModelInstance::instanceName, ModelInstance::libsumoCallOptions, and ModelInstance::resourceLocation.
| fmi2Status fmi2GetBoolean | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| fmi2Boolean | value[] ) |
Definition at line 243 of file fmi2Functions.c.
References fmi2Error, invalid_return< std::string >::value, and UNUSED_PARAMETER.
| fmi2Status fmi2GetBooleanStatus | ( | fmi2Component | c, |
| const fmi2StatusKind | s, | ||
| fmi2Boolean * | value ) |
Definition at line 474 of file fmi2Functions.c.
References fmi2Discard, invalid_return< std::string >::value, and UNUSED_PARAMETER.
| fmi2Status fmi2GetDirectionalDerivative | ( | fmi2Component | c, |
| const fmi2ValueReference | vUnknown_ref[], | ||
| size_t | nUnknown, | ||
| const fmi2ValueReference | vKnown_ref[], | ||
| size_t | nKnown, | ||
| const fmi2Real | dvKnown[], | ||
| fmi2Real | dvUnknown[] ) |
Definition at line 387 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2GetFMUstate | ( | fmi2Component | c, |
| fmi2FMUstate * | FMUstate ) |
Definition at line 340 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2GetInteger | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| fmi2Integer | value[] ) |
Definition at line 217 of file fmi2Functions.c.
References fmi2Error, fmi2OK, fmi2Warning, invalid_return< std::string >::value, and sumo2fmi_getInteger().
| fmi2Status fmi2GetIntegerStatus | ( | fmi2Component | c, |
| const fmi2StatusKind | s, | ||
| fmi2Integer * | value ) |
Definition at line 465 of file fmi2Functions.c.
References fmi2Discard, invalid_return< std::string >::value, and UNUSED_PARAMETER.
| fmi2Status fmi2GetReal | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| fmi2Real | value[] ) |
Definition at line 207 of file fmi2Functions.c.
References fmi2Error, invalid_return< std::string >::value, and UNUSED_PARAMETER.
| fmi2Status fmi2GetRealOutputDerivatives | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| const fmi2Integer | order[], | ||
| fmi2Real | value[] ) |
Definition at line 412 of file fmi2Functions.c.
References fmi2Error, invalid_return< std::string >::value, and UNUSED_PARAMETER.
| fmi2Status fmi2GetRealStatus | ( | fmi2Component | c, |
| const fmi2StatusKind | s, | ||
| fmi2Real * | value ) |
Definition at line 456 of file fmi2Functions.c.
References fmi2Discard, invalid_return< std::string >::value, and UNUSED_PARAMETER.
| fmi2Status fmi2GetStatus | ( | fmi2Component | c, |
| const fmi2StatusKind | s, | ||
| fmi2Status * | value ) |
Definition at line 447 of file fmi2Functions.c.
References fmi2Discard, invalid_return< std::string >::value, and UNUSED_PARAMETER.
| fmi2Status fmi2GetString | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| fmi2String | value[] ) |
Clear value array buffer before reuse
Definition at line 253 of file fmi2Functions.c.
References ModelInstance::allocateMemory, ModelInstance::bufferArray, ModelInstance::bufferArrayLength, fmi2Error, fmi2OK, fmi2Warning, ModelInstance::freeMemory, invalid_return< std::string >::value, and sumo2fmi_getString().
| fmi2Status fmi2GetStringStatus | ( | fmi2Component | c, |
| const fmi2StatusKind | s, | ||
| fmi2String * | value ) |
Definition at line 483 of file fmi2Functions.c.
References fmi2Discard, invalid_return< std::string >::value, and UNUSED_PARAMETER.
| const char * fmi2GetTypesPlatform | ( | void | ) |
Definition at line 42 of file fmi2Functions.c.
References fmi2TypesPlatform.
| const char * fmi2GetVersion | ( | void | ) |
Definition at line 46 of file fmi2Functions.c.
References fmi2Version.
| fmi2Component fmi2Instantiate | ( | fmi2String | instanceName, |
| fmi2Type | fmuType, | ||
| fmi2String | fmuGUID, | ||
| fmi2String | fmuResourceLocation, | ||
| const fmi2CallbackFunctions * | functions, | ||
| fmi2Boolean | visible, | ||
| fmi2Boolean | loggingOn ) |
Definition at line 87 of file fmi2Functions.c.
References fmi2CallbackFunctions::allocateMemory, ModelInstance::allocateMemory, fmi2CallbackFunctions::componentEnvironment, ModelInstance::componentEnvironment, fmi2CallbackFunctions::freeMemory, ModelInstance::freeMemory, ModelInstance::instanceName, ModelInstance::logErrors, ModelInstance::logEvents, fmi2CallbackFunctions::logger, ModelInstance::logger, ModelInstance::resourceLocation, and UNUSED_PARAMETER.
| fmi2Status fmi2Reset | ( | fmi2Component | c | ) |
Definition at line 198 of file fmi2Functions.c.
References fmi2OK, and UNUSED_PARAMETER.
| fmi2Status fmi2SerializedFMUstateSize | ( | fmi2Component | c, |
| fmi2FMUstate | FMUstate, | ||
| size_t * | size ) |
Definition at line 361 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2SerializeFMUstate | ( | fmi2Component | c, |
| fmi2FMUstate | FMUstate, | ||
| fmi2Byte | state[], | ||
| size_t | size ) |
Definition at line 369 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2SetBoolean | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| const fmi2Boolean | value[] ) |
Definition at line 312 of file fmi2Functions.c.
References fmi2Error, invalid_return< std::string >::value, and UNUSED_PARAMETER.
| fmi2Status fmi2SetDebugLogging | ( | fmi2Component | c, |
| fmi2Boolean | loggingOn, | ||
| size_t | nCategories, | ||
| const fmi2String | categories[] ) |
Definition at line 56 of file fmi2Functions.c.
References fmi2Error, fmi2OK, ModelInstance::logErrors, ModelInstance::logEvents, and sumo2fmi_logError().
| fmi2Status fmi2SetFMUstate | ( | fmi2Component | c, |
| fmi2FMUstate | FMUstate ) |
Definition at line 347 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2SetInteger | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| const fmi2Integer | value[] ) |
Definition at line 302 of file fmi2Functions.c.
References fmi2Error, invalid_return< std::string >::value, and UNUSED_PARAMETER.
| fmi2Status fmi2SetReal | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| const fmi2Real | value[] ) |
Definition at line 293 of file fmi2Functions.c.
References fmi2Error, invalid_return< std::string >::value, and UNUSED_PARAMETER.
| fmi2Status fmi2SetRealInputDerivatives | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| const fmi2Integer | order[], | ||
| const fmi2Real | value[] ) |
Definition at line 401 of file fmi2Functions.c.
References fmi2Error, invalid_return< std::string >::value, and UNUSED_PARAMETER.
| fmi2Status fmi2SetString | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| const fmi2String | value[] ) |
Definition at line 322 of file fmi2Functions.c.
References fmi2OK, fmi2Warning, invalid_return< std::string >::value, and sumo2fmi_setString().
| fmi2Status fmi2SetupExperiment | ( | fmi2Component | c, |
| fmi2Boolean | toleranceDefined, | ||
| fmi2Real | tolerance, | ||
| fmi2Real | startTime, | ||
| fmi2Boolean | stopTimeDefined, | ||
| fmi2Real | stopTime ) |
Definition at line 148 of file fmi2Functions.c.
References fmi2OK, ModelInstance::startTime, ModelInstance::stopTime, sumo2fmi_set_startValues(), and UNUSED_PARAMETER.
| fmi2Status fmi2Terminate | ( | fmi2Component | c | ) |
Definition at line 189 of file fmi2Functions.c.
References fmi2OK, libsumo_close(), and UNUSED_PARAMETER.