DomainManager-class: Class '"DomainManager"'

Description Fields Class Methods Author(s) References See Also Examples

Description

Administer the domains held: provides methods to add, retrieve, upgrade, materialise, and remove domain objects. Some of the calculation processes involved in creating social semantic network representations of learning are computationally rather costly. The DomainManager supports efficient management of domains: it provides methods to materialise to the cache directory on the local hard disk and it supports the user in finding, loading, and upgrading domain objects (and their visualisers) to new class releases.

Fields

domains:

The domain objects currently held in memory.

signatures:

The unique identifiers of the domain objects held in memory.

tempdir:

The path to the cache directory.

caching:

Logical: flag whether caching should be enabled (TRUE) or not (FALSE).

remoting:

Logical: flag wether retrieval from and processing on cRunch should be enabled; not yet implemented.

Class Methods

initialize(domain):
add(x, title):

Create a new domain object and add it to the list of domains available in memory.

retrieve(id, name):

Load a materialised domain object from the local cache directory.

get(name, id):

Return the reference pointer to the domain object requested, load it from the cache directory if needed.

materialise(id):

Save the domain object to local cache directory.

status(id):

Check for availability of the domain with signature 'id'.

flush(domain):

Remove all (or specified) domain objects from memory.

flushCache():

Delete all domain object cache files from the local cache directory.

upgrade(force):

Update all domain objects currently in memory to the latest class code version.

last():

Return the reference pointer to the last domain added.

ls():

Return the names of all domains currently in memory.

all():

Return reference pointers to all domains currently in memory.

print():

Pretty printing: listing the number of domains in memory.

show():

Display the object by printing its key characteristics.

Author(s)

Fridolin Wild <wild@brookes.ac.uk>

References

Fridolin Wild (2016): Learning Analytics in R with SNA, LSA, and MPIA, Springer:Berlin.

See Also

DomainManager, Visualiser, Domain

Examples

1
2
3
4
5
6
7
dmgr = DomainManager()
data(generic.domain)
dmgr$add(d, title="generic")
#d = dmgr$get("generic")

dmgr$upgrade()
dmgr$materialise(d$signature)

mpia documentation built on May 2, 2019, 4:18 p.m.