void add ( PackingPlan . InstancePlan instancePlan ) { if ( this . instances . contains ( instancePlan ) ) { throw new PackingException ( String . format ( "Instance %s already exists in container %s" , instancePlan , toString ( ) ) ) ; } this . instances . add ( instancePlan ) ; }
Update the resources currently used by the container when a new instance with specific resource requirements has been assigned to the container .