First, I have a Fleet, which contains a collection of Ships (ArrayList) of all different types (classes that extend Ship). Next, I have a Celestial object, which could be one of several different types (classes that extend Celestial).
Some types of Ships can harvest resources from one and only one type of Celestial each. For example, an OreShip (extends Ship) and only an OreShip can harvest from and only from an AsteroidBelt (extends Celestial). Furthermore, not all types of Ships can harvest (those that can do so implement the interface Harvests) and not all types of Celestials are harvestable (those that are implement the interface Harvestable).
Now, here is the problem. If the Fleet has access to a Celestial body that is an AsteroidBelt and contains at least one OreShip, I want to be able to order the Fleet to make its OreShips, and only the OreShips, harvest from the AsteroidBelt. How can I do this, preferably without a massive if/else switch, given the ArrayList?