Mulai simulasi - AWS SimSpace Weaver

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

Mulai simulasi

Gunakan CreateApplication() untuk membuat aplikasi.

contoh Contoh
Result<Application> applicationResult = Api::CreateApplication(); if (!applicationResult) { ErrorCode errorCode = WEAVERRUNTIME_EXPECT_ERROR(applicationResult); std::cout << "Failed to create application. Error code " << static_cast<std::underlying_type_t<ErrorCode>>(errorCode) << " Last error message "<< Api::LastErrorMessage() << "."; return 1; } /** * Run simulation */ RunSimulation(std::move(applicationResult.assume_value()));