Skip to content

Commit

Permalink
#742 - don't submit order below min quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
jecollins committed Mar 6, 2014
1 parent 2b7712e commit f2cb685
Showing 1 changed file with 10 additions and 1 deletion.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2013 by the original author
* Copyright (c) 2012-2014 by the original author
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -129,6 +129,15 @@ public double getMeanMarketPrice ()
}

// --------------- message handling -----------------
/**
* Handles the Competition instance that arrives at beginning of game.
* Here we capture minimum order size to avoid running into the limit
* and generating unhelpful error messages.
*/
public void handleMessage (Competition comp)
{
minMWh = Math.max(minMWh, comp.getMinimumOrderQuantity());
}

/**
* Handles a BalancingTransaction message.
Expand Down

0 comments on commit f2cb685

Please sign in to comment.