RomProperty | R Documentation |
Object for storing single time series value or a description of another property or feature entity
Has standard methods for managing data and meta data including post, from_list, to_list, delete. See RomProperty code for all methods. Inherits other methods from RomEntity
reference class of type openmi.om.base e.g. a RomProperty that will have its essential fields stored on itself with REST or ODBC methods to post and delete base entity
an updated config if necessary or FALSE if it fails
hydrotools::RomEntity
-> RomProperty
base_entity_type
kind of entity
pk_name
the name of this entity's pk column
pid
unique ID in this RomDataSource
featureid
id of entity this is attached to
entity_type
type of entity this is attached to
has_vardef
is pluggable?
propname
locally unique name
startdate
begin timestamp
enddate
end time stamp
propvalue
numerical value
propcode
alphanumeric value
proptext
alphanumeric value
data_matrix
json matrix
varid
variable ID from RomDataSource
bundle
(for future use)
uid
user id of creator
vid
current revision (pk in dh_properties_revision)
module
related module (optional?)
matrix_revision_id
pk for foreign table
modified
timestamp
datasource
RomDataSource
tree_loaded
- this is a switch to enable fast loading of export tree from local storage
sql_select_from
syntax to use to select via an odbc or other SQL based datasource
base_only
- how to export to list in case of complex multi table entity and ODBC
get_id()
RomProperty$get_id()
get_id the id of this entity alias to remote pkid, subclassed as function
new()
RomProperty$new(datasource = NULL, config = list(), load_remote = FALSE)
datasource
URL of some RESTful repository
config
list of attributes to set, see also: to_list() for format
load_remote
automatically query REST data source for matches?
object instance
handle_config()
RomProperty$handle_config(config)
config
from_list()
RomProperty$from_list(config)
config
list of attributes to set, see also: to_list() for format
NULL
to_list()
RomProperty$to_list(base_only = FALSE)
base_only
whether to only use base columns (TRUE) or add fields (FALSE)
list of object attributes suitable for input to new() and from_list() methods
save()
RomProperty$save(push_remote = FALSE)
push_remote
whether to automatically propagate changes to remote data source
boolean TRUE on success, FALSE on failure
save_matrix()
RomProperty$save_matrix()
NULL
save_field()
RomProperty$save_field( class_field_name, field_table, value_pairs, pkeys = c("entity_type", "entity_id") )
class_field_name
what is this field called on this object (deprecated)
field_table
table to insert into
value_pairs
attriutes to add to insert above the basic entity info (field value here)
pkeys
whether to automatically propagate changes to remote data source
NULL
delete()
RomProperty$delete(delete_remote = FALSE)
delete_remote
update locally only or push to remote database
NULL
set_matrix()
Takes in a data frame where each column represents a row to store in the data matrix of this object. This method tranposes that data frame while trying to maintain data strcutures and types
RomProperty$set_matrix(row_cols)
row_cols
A data frame of rows that will be transposed to meet final
model or property structure e.g. data.frame(c(1,'foo'), c(2,'bar'), c(3,'bingo'))
will be coerced to data.frame(c(1,2,3), c('foo','bar','bingo'))
Nothing, but will set the data_matrix field on RomProperty instance
delete_fields()
RomProperty$delete_fields(delete_remote = FALSE)
delete_remote
update locally only or push to remote database
NULL
clone()
The objects of this class are cloneable with this method.
RomProperty$clone(deep = FALSE)
deep
Whether to make a deep clone.
RomEntity, RomFeature, RomDatasource
NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.