PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/farmR/NAMESPACE

https://code.google.com/p/javawfm/
#! | 37 lines | 25 code | 12 blank | 0 comment | 0 complexity | f51356e3d2a1f18a2aee985a7c0d1997 MD5 | raw file
 1import(rJava)
 2
 3#S4 Classes
 4exportClasses(Farm,CompositeFarm,FarmRepresentation,FarmParameters,ObjectiveParameters,Parameters)
 5
 6# Constructors for classes
 7export(CompositeFarm,Farm,FarmParameters,ObjectiveParameters)
 8
 9#S4 Generic Methods defined by FarmRepresentation
10exportMethods(guts,show,solvelp,model,isSolved,profit,eo,cropArea,cropNames,objectiveNames,objectiveValues,objectiveScaleFactors,setInputCost,constrainArea)
11
12#S4 Generic Methods defined by Farm
13#exportMethods(set)
14
15#S4 Generic Methods defined by Parameters
16exportMethods(document,show)
17
18#S4 Methods defined by ObjectiveParameters
19export(setWeightForObjective,getWeightForObjective)
20
21# Methods defined in xml.R
22#export(parseXMLDocument)
23
24# Methods defined in database.R for accessing provided xml files
25export(defaultArableFarmParameters,defaultArableObjectiveParameters)
26
27# General methods defined in FarmParameters-class.R
28export(setPriceForCrop,setSubsidyForCrop)
29export(setSolverType,getSolverType)
30export(setRelativePriceForCrop,setRelativeCost,setRelativeRotationPenalties,setRelativeLabourRequirements,setRelativeYieldForCrop,setPriceForCrop,setSubsidyForCrop)
31
32# S3 methods to coerce farms into data frames
33S3method(as.data.frame, FarmRepresentation)
34S3method(as.data.frame, Farm)
35S3method(as.data.frame, CompositeFarm)
36
37