R/EpivizChart-class.R

EpivizChart <- setRefClass("EpivizChart",
	fields=list(
		measurements="character",
		id="character",
		mgr="EpivizDeviceMgr",
		inDevice="logical",
		type="character"),
	methods=list(
		initialize=function(inDevice=FALSE, ...) {
			inDevice <<- inDevice
			callSuper(...)
		},
		setId=function(id) {id <<- id},
		getId=function() {return(id)},
		setInDevice=function(x) {inDevice <<- x},
		show=function() {
			cat("EpivizChart object: ", getId(), "\n")
			cat("type: ", type, "\n")
			cat("measurements: ", paste0(measurements, collapse=","), "\n")
		}
	)
)
epiviz/epivizr-tmp documentation built on May 16, 2019, 8:19 a.m.