/*
 * JaamSim Discrete Event Simulation
 * Copyright (C) 2018 JaamSim Software Inc.
 *
 * Licensed 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 com.jaamsim.resourceObjects;

import com.jaamsim.Graphics.DisplayEntity;

public class ResourcePool extends AbstractResourceProvider {

	public ResourcePool() {}

	@Override
	public boolean canSeize(int n, DisplayEntity ent) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void seize(int n, DisplayEntity ent) {
		// TODO Auto-generated method stub
	}

	@Override
	public void release(int n, DisplayEntity ent) {
		// TODO Auto-generated method stub
	}

}

@@ -677,16 +677,45 @@
 jects;%0A%0A
+import java.util.ArrayList;%0A%0A
 import c
@@ -748,16 +748,52 @@
 yEntity;
+%0Aimport com.jaamsim.basicsim.Entity;
 %0A%0Apublic
@@ -854,30 +854,405 @@
 %0A%0A%09p
-ublic ResourcePool() %7B
+rivate final ArrayList%3CSeizable%3E seizableList;%0A%0A%09public ResourcePool() %7B%0A%09%09seizableList = new ArrayList%3C%3E();%0A%09%7D%0A%0A%09@Override%0A%09public void earlyInit() %7B%0A%09%09super.earlyInit();%0A%0A%09%09seizableList.clear();%0A%09%09for (Entity ent : Entity.getClonesOfIterator(Entity.class, Seizable.class)) %7B%0A%09%09%09Seizable unit = (Seizable) ent;%0A%09%09%09if (unit.getResourcePool() != this)%0A%09%09%09%09continue;%0A%09%09%09seizableList.add(unit);%0A%09%09%7D%0A%09
 %7D%0A%0A%09

add property seizableList to ResourcePool