SDMP User Manual (KOR)
  • 개요
    • SDMP 소개
  • 프로젝트 생성
    • 프로젝트 생성
  • 데이터 핸들링
    • 입력 데이터 로딩
      • 입력 데이터 스키마 정의
      • 입력 데이터 정의
      • 입력 데이터 로딩
    • 데이터 조회
    • 출력 데이터 쓰기
      • 출력 데이터 스키마 정의
      • 출력 데이터 추가
      • 파일 출력
  • General Module
    • 모듈 개요
    • 사용자 컨트롤
      • StateControl
      • ActionControl
      • StateTransitionControl
      • BoundControl
      • ApproximationControl
      • SolverControl
      • EventControl
      • DataControl
      • LogControl
    • 데이터 모델
      • State
    • 활용 사례
      • Car Resequencing Problem
      • Lot Sizing Problem
  • Routing Module
    • 모듈 개요
    • 사용자 컨트롤
      • CustomerControl
      • VehicleControl
    • 데이터 모델
    • 활용 사례
      • Vehicle Routing Problem
  • Scheduling Module
    • 모듈 개요
    • 사용자 컨트롤
    • 데이터 모델
    • 활용 사례
Powered by GitBook
On this page
  1. Routing Module
  2. 사용자 컨트롤

VehicleControl

Vehicle과 관련된 기능을 담당하는 컨트롤

GetLoadableResources

public override List<Resource> GetLoadableResources(Product product, Vehicle vehicle)

정의

주어진 Product를 처리할 수 있는 해당 Vehicle의 Resource 리스트를 반환합니다.

매개 변수

Type
Description

Product

대상 Product 입니다.

Vehicle

대상 Vehicle 입니다.

반환

Type
Description
Default

List<Resource>

처리가능한 Resource 목록입니다.

예제 (Default Logic)

public override List<Resource> GetLoadableResources(Product product, Vehicle vehicle)
{
    List<Resource> list = new List<Resource>();

    foreach (KeyValuePair<string, Resource> item in vehicle.Resources)
    {
        Resource res = item.Value;

        if (res.Product.ID != product.ID)
            continue;

        list.Add(res);
    }

    return list;
}
PreviousCustomerControlNext데이터 모델

Last updated 2 years ago

Default Logic 참조