{
int nodeList[] = {1,9};
String manpId = createAndRunSeregenttiSubFoodweb(nodeList, "testNode4and73", 0, 1, true);
List<ManipulatingNode> nodes = new ArrayList<ManipulatingNode>();
ManipulatingNode node = new ManipulatingNode();
node.setTimestepIdx(1);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(1);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
nodes.add(node);
node = new ManipulatingNode();
node.setTimestepIdx(1);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(9);
node.setBeginingBiomass(10);
node.setHasLinks(false);
nodes.add(node);
List<ManipulatingParameter> sParams = new ArrayList<ManipulatingParameter>();
this.setNodeParameter(1, ManipulatingParameterName.k.getManipulatingParameterIndex(), 4000, sParams);
this.setNodeParameter(9, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.75, 1, sParams);
// this.setNodeParameter(12, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.9, sParams);
// this.setNodeParameter(5, ManipulatingParameterName.k.getManipulatingParameterIndex(), 5000, sParams);
// this.setNodeParameter(4, ManipulatingParameterName.r.getManipulatingParameterIndex(), , sParams);
// this.setNodeParameter(5, ManipulatingParameterName.r.getManipulatingParameterIndex(), 0.333, sParams);
// this.setLinkParameter(73, 4, ManipulatingParameterName.a.getManipulatingParameterIndex(), 0.6, 1, sParams);
// this.setLinkParameter(73, 5, ManipulatingParameterName.a.getManipulatingParameterIndex(), 0.4, 1, sParams);
updateSystemParameters(1, false, manpId, sParams, nodes);
/// testParameters(manpId, sParams);
// run(2, 8, manpId, false);
nodes = new ArrayList<ManipulatingNode>();
node = new ManipulatingNode();
node.setTimestepIdx(2);
node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(12);
node.setBeginingBiomass(10);
node.setHasLinks(false);
node.setGameMode(true);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
sParams = new ArrayList<ManipulatingParameter>();
this.setNodeParameter(12, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.85, 2, sParams);
// this.setLinkParameter(9, 1, ManipulatingParameterName.a.getManipulatingParameterIndex(), 0.05, 1, sParams);
// this.setLinkParameter(9, 9, ManipulatingParameterName.a.getManipulatingParameterIndex(), 0.3, 1, sParams);
// this.setLinkParameter(9, 12, ManipulatingParameterName.a.getManipulatingParameterIndex(), 0.65, 1, sParams);
// this.setLinkParameter(73, 4, ManipulatingParameterName.d.getManipulatingParameterIndex(), 1, 3, sParams);
// this.setNodeParameter(73, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.9, sParams);
// this.setNodeParameter(5, ManipulatingParameterName.r.getManipulatingParameterIndex(), 0.333, sParams);
updateSystemParameters(2, false, manpId, sParams, nodes);
// run(3, 27, manpId, false);
nodes = new ArrayList<ManipulatingNode>();
node = new ManipulatingNode();
node.setTimestepIdx(3);
node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(20);
node.setBeginingBiomass(4);
node.setHasLinks(false);
node.setGameMode(true);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
node = new ManipulatingNode();
node.setTimestepIdx(3);
node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(25);
node.setBeginingBiomass(5);
node.setHasLinks(false);
node.setGameMode(true);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
node = new ManipulatingNode();
node.setTimestepIdx(3);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(1);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
nodes.add(node);
sParams = new ArrayList<ManipulatingParameter>();
this.setNodeParameter(20, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.65, 3, sParams);
// this.setLinkParameter(73, 4, ManipulatingParameterName.a.getManipulatingParameterIndex(), 0.6, 1, sParams);
updateSystemParameters(3, false, manpId, sParams, nodes);
// run(4, 22, manpId, false);
nodes = new ArrayList<ManipulatingNode>();
node = new ManipulatingNode();
node.setTimestepIdx(4);
node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(75);
node.setBeginingBiomass(10);
node.setHasLinks(false);
node.setGameMode(true);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
node = new ManipulatingNode();
node.setTimestepIdx(4);
node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(5);
node.setBeginingBiomass(3000);
node.setHasLinks(false);
node.setGameMode(true);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
sParams = new ArrayList<ManipulatingParameter>();
this.setNodeParameter(5, ManipulatingParameterName.k.getManipulatingParameterIndex(), 4000, sParams);
this.setNodeParameter(75, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.4, 4, sParams);
updateSystemParameters(4, false, manpId, sParams, nodes);
nodes = new ArrayList<ManipulatingNode>();
node = new ManipulatingNode();
node.setTimestepIdx(5);
node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(57);
node.setBeginingBiomass(10);
node.setHasLinks(false);
node.setGameMode(true);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
node = new ManipulatingNode();
node.setTimestepIdx(5);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(1);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
nodes.add(node);
node = new ManipulatingNode();
node.setTimestepIdx(5);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(5);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
sParams = new ArrayList<ManipulatingParameter>();
this.setNodeParameter(57, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.35, 5, sParams);
updateSystemParameters(5, false, manpId, sParams, nodes);
nodes = new ArrayList<ManipulatingNode>();
node = new ManipulatingNode();
node.setTimestepIdx(6);
node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(49);
node.setBeginingBiomass(10);
node.setHasLinks(false);
node.setGameMode(true);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
sParams = new ArrayList<ManipulatingParameter>();
this.setNodeParameter(49, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.3, 6, sParams);
updateSystemParameters(6, false, manpId, sParams, nodes);
nodes = new ArrayList<ManipulatingNode>();
node = new ManipulatingNode();
node.setTimestepIdx(7);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(1);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
nodes.add(node);
sParams = new ArrayList<ManipulatingParameter>();
node = new ManipulatingNode();
node.setTimestepIdx(7);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(5);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
updateSystemParameters(7, false, manpId, sParams, nodes);
run(8, 1, manpId, false);
nodes = new ArrayList<ManipulatingNode>();
node = new ManipulatingNode();
node.setTimestepIdx(9);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(1);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
nodes.add(node);
node = new ManipulatingNode();
node.setTimestepIdx(9);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(5);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
sParams = new ArrayList<ManipulatingParameter>();
updateSystemParameters(9, false, manpId, sParams, nodes);
run(10, 1, manpId, false);
nodes = new ArrayList<ManipulatingNode>();
node = new ManipulatingNode();
node.setTimestepIdx(11);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(1);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
nodes.add(node);
node = new ManipulatingNode();
node.setTimestepIdx(11);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(5);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
sParams = new ArrayList<ManipulatingParameter>();
updateSystemParameters(11, false, manpId, sParams, nodes);
run(12, 1, manpId, false);
nodes = new ArrayList<ManipulatingNode>();
node = new ManipulatingNode();
node.setTimestepIdx(13);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(1);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
nodes.add(node);
node = new ManipulatingNode();
node.setTimestepIdx(13);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(5);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
sParams = new ArrayList<ManipulatingParameter>();
updateSystemParameters(13, false, manpId, sParams, nodes);
run(14, 1, manpId, false);
nodes = new ArrayList<ManipulatingNode>();
node = new ManipulatingNode();
node.setTimestepIdx(15);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(1);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
nodes.add(node);
node = new ManipulatingNode();
node.setTimestepIdx(15);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(5);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
sParams = new ArrayList<ManipulatingParameter>();
updateSystemParameters(15, false, manpId, sParams, nodes);
run(16, 1, manpId, false);
nodes = new ArrayList<ManipulatingNode>();
node = new ManipulatingNode();
node.setTimestepIdx(17);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(1);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
nodes.add(node);
node = new ManipulatingNode();
node.setTimestepIdx(17);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(5);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
sParams = new ArrayList<ManipulatingParameter>();
updateSystemParameters(17, false, manpId, sParams, nodes);
run(18, 1, manpId, false);
nodes = new ArrayList<ManipulatingNode>();
node = new ManipulatingNode();
node.setTimestepIdx(19);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(1);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
nodes.add(node);
node = new ManipulatingNode();
node.setTimestepIdx(19);
node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
node.setNodeIdx(5);
node.setBeginingBiomass(2000);
node.setHasLinks(false);
node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
nodes.add(node);
sParams = new ArrayList<ManipulatingParameter>();
updateSystemParameters(19, false, manpId, sParams, nodes);