owner: Owner of a SsimLibrary, Project or Scenario

Description Usage Arguments Value Examples

Description

Retrieves or sets the owner of a SsimLibrary, Project or Scenario.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
owner(ssimObject)

owner(ssimObject) <- value

## S4 method for signature 'character'
owner(ssimObject)

## S4 method for signature 'SsimLibrary'
owner(ssimObject)

## S4 method for signature 'Project'
owner(ssimObject)

## S4 method for signature 'Scenario'
owner(ssimObject)

## S4 replacement method for signature 'character'
owner(ssimObject) <- value

## S4 replacement method for signature 'SsimObject'
owner(ssimObject) <- value

Arguments

ssimObject

Session, Project, or SsimLibrary object

value

character string of the new owner

Value

A character string: the owner of the SsimObject.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
# Specify file path and name of new SsimLibrary
myLibraryName <- file.path(tempdir(), "testlib")

# Set up a SyncroSim Session, SsimLibrary, Project, and Scenario
mySession <- session()
myLibrary <- ssimLibrary(name = myLibraryName, session = mySession)
myProject <- project(myLibrary, project = "Definitions")
myScenario <- scenario(myProject, scenario = "My Scenario")

# Retrieve the owner of an SsimObject
owner(myLibrary)
owner(myProject)
owner(myScenario)

# Set the owner of a SyncroSim Scenario
owner(myScenario) <- "Apex RMS"

## End(Not run)

rsyncrosim documentation built on Oct. 28, 2021, 1:07 a.m.