-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathgeoflow_keyword.R
50 lines (47 loc) · 1.14 KB
/
geoflow_keyword.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#' geoflow_keyword
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#'
#' @name geoflow_keyword
#' @title Geoflow keyword class
#' @description This class models a keyword
#' @keywords keyword
#' @return Object of \code{\link{R6Class}} for modelling a keyword
#' @format \code{\link{R6Class}} object.
#'
#' @examples
#' \dontrun{
#' kwd <- geoflow_keyword$new()
#' kwd$setName("keyword")
#' kwd$setUri("http://somelink/keyword")
#' }
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
geoflow_keyword <- R6Class("geoflow_keyword",
public = list(
#'@field name keyword
name = NULL,
#'@field uri keyword uri
uri = NULL,
#'@description Initializes a \link{geoflow_keyword}
#'@param name keyword name
#'@param uri keyword URI
initialize = function(name = NULL, uri = NULL){
self$name <- name
self$uri <- uri
},
#'@description Sets keyword
#'@param name keyword name
setName = function(name){
self$name <- name
},
#'@description Sets keyword URI
#'@param uri keyword URI
setUri = function(uri){
self$uri <- uri
}
)
)