You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @alexwalterbos , I just looked into your problem with getting a null OutcomeSpace, and I am able to reproduce it. I think you can solve this by using new OutcomeSpace(negoSession.getUtilitySpace());, but I haven't checked in detail.
package negotiator.group1;
import java.util.HashMap;
import negotiator.bidding.BidDetails;
import negotiator.boaframework.NegotiationSession;
import negotiator.boaframework.OMStrategy;
import negotiator.boaframework.OfferingStrategy;
import negotiator.boaframework.OpponentModel;
import negotiator.boaframework.OutcomeSpace;
public class Group1_BS extends OfferingStrategy {
NegotiationSession negoSession;
@Override
public void init(NegotiationSession negoSession,
OpponentModel oppModel,
OMStrategy oms,
HashMap<String,Double> parameters) {
this.negoSession=negoSession;
}
@Override
public BidDetails determineNextBid() {
// TODO Auto-generated method stub
return determineOpeningBid();
}
@Override
public BidDetails determineOpeningBid() {
OutcomeSpace myOutcomeSpace = new OutcomeSpace(negoSession.getUtilitySpace());
OutcomeSpace myOtherOutcomeSpace = negoSession.getOutcomeSpace();
// Show if outcomespace is null
if(myOutcomeSpace==null)
System.out.println("OutcomeSpace is null!");
else
System.out.println("OutcomeSpace: "+myOutcomeSpace);
// Show if otheroutcomespace is null
if(myOtherOutcomeSpace==null)
System.out.println("OtherOutcomeSpace is null!");
else
System.out.println("OtherOutcomeSpace: "+myOutcomeSpace);
// Hang
while(true);
}
}
The text was updated successfully, but these errors were encountered:
Hey @alexwalterbos , I just looked into your problem with getting a null OutcomeSpace, and I am able to reproduce it. I think you can solve this by using
new OutcomeSpace(negoSession.getUtilitySpace());
, but I haven't checked in detail.The text was updated successfully, but these errors were encountered: