/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.flink.runtime.scheduler;

import org.apache.flink.runtime.scheduler.strategy.ExecutionVertexID;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

/** Represents execution vertices that will run the same shared slot. */
class ExecutionSlotSharingGroup {

    private final Set<ExecutionVertexID> executionVertexIds;

    ExecutionSlotSharingGroup() {
        this.executionVertexIds = new HashSet<>();
    }

    void addVertex(final ExecutionVertexID executionVertexId) {
        executionVertexIds.add(executionVertexId);
    }

    Set<ExecutionVertexID> getExecutionVertexIds() {
        return Collections.unmodifiableSet(executionVertexIds);
    }
}

@@ -881,44 +881,160 @@
 ime.
-scheduler.strategy.ExecutionVertexID
+clusterframework.types.ResourceProfile;%0Aimport org.apache.flink.runtime.scheduler.strategy.ExecutionVertexID;%0Aimport org.apache.flink.util.Preconditions
 ;%0A%0Ai
@@ -1281,16 +1281,88 @@
 exIds;%0A%0A
+    private ResourceProfile resourceProfile = ResourceProfile.UNKNOWN;%0A%0A
     Exec
@@ -1505,24 +1505,24 @@
 VertexId) %7B%0A
-
         exec
@@ -1563,24 +1563,252 @@
 Id);%0A    %7D%0A%0A
+    void setResourceProfile(ResourceProfile resourceProfile) %7B%0A        this.resourceProfile = Preconditions.checkNotNull(resourceProfile);%0A    %7D%0A%0A    ResourceProfile getResourceProfile() %7B%0A        return resourceProfile;%0A    %7D%0A%0A
     Set%3CExec

Add ResourceProfile field to ExecutionSlotSharingGroup