PageRenderTime 18ms CodeModel.GetById 8ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/farmR/src/java/src/jfm/r/FarmRepresentation.java

https://code.google.com/p/javawfm/
Java | 71 lines | 34 code | 28 blank | 9 comment | 0 complexity | 70961f7753ca1311436caa93e8ae3c94 MD5 | raw file
 1/**
 2 * 
 3 */
 4package jfm.r;
 5import jfm.model.Crop;
 6import jfm.model.Types;
 7import jfm.mou.FarmerMOU;
 8import jfm.xml.XMLSyntaxException;
 9
10/**
11 * @author iracooke
12 *
13 */
14public abstract class FarmRepresentation {
15	
16	public abstract void applyMOU(FarmerMOU mou);
17	
18	public abstract void createAndApplyMOU(String mouName);
19
20	public abstract String solutionSummary();
21
22	public abstract void solutionDetails();
23
24	public abstract String[] cropNames();
25	
26	public abstract String[] objectiveNames();
27	
28	public abstract double[] objectiveValues();
29	
30	public abstract double[] objectiveScaleFactors();
31	
32//	public abstract double[] utilityContributions();
33
34	public abstract double profit();
35	
36	public abstract double eo();
37	
38	public abstract int isSolved();
39	
40	public abstract String solver();
41	
42	public abstract void setDistanceFromSugarbeetFactory(double distance,double costPerKmPerHa);
43	
44	/** A wrapper for solve that can be easily called from rJava */
45	public abstract int solve(String failDump);
46
47	public abstract double areaOfCropNamed(String name);
48	public abstract double priceOfCropNamed(String name);
49	public abstract double yieldOfCropNamed(String name);
50	
51	public abstract double areaOfWinterStubble();
52	
53	public abstract void fixAreaOfCrop(double areaLimit,String xmlCropName);
54	
55	public abstract void reset();
56	
57	public abstract void lowerLimitAreaOfCrop(double areaLimit,String xmlCropName);
58	public abstract void boundLimitAreaOfCrop(double areaMin,double areaMax,String xmlCropName);
59	
60	
61	public abstract void setYieldForCrop(String xmlCropName,double yield);
62	
63	public abstract void setPriceForCrop(String xmlCropName,double price);
64	
65	public abstract void setSubsidyForCrop(String xmlCropName,double subsidy);
66	
67	public abstract void setInputCost(String xmlInputName,double unitCost);
68	
69	public abstract String toString();
70	
71}