games.strategy.triplea.delegate.dataObjects
Class PlaceableUnits

java.lang.Object
  extended by games.strategy.triplea.delegate.dataObjects.PlaceableUnits
All Implemented Interfaces:
java.io.Serializable

public class PlaceableUnits
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
PlaceableUnits(java.util.Collection<Unit> units, int maxUnits)
           
PlaceableUnits(java.lang.String errorMessage)
          Creates new ProductionResponseMessage
 
Method Summary
 java.lang.String getErrorMessage()
           
 int getMaxUnits()
           
 java.util.Collection<Unit> getUnits()
           
 boolean isError()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlaceableUnits

public PlaceableUnits(java.lang.String errorMessage)
Creates new ProductionResponseMessage


PlaceableUnits

public PlaceableUnits(java.util.Collection<Unit> units,
                      int maxUnits)
Method Detail

getUnits

public java.util.Collection<Unit> getUnits()

getMaxUnits

public int getMaxUnits()
Returns:
-1 if no limit

getErrorMessage

public java.lang.String getErrorMessage()

isError

public boolean isError()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object