ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class PresentationImpl.PresentationImpl(system, config)

This is the abstract class which a <no title> interacts with to control a Presenation (like MS PowerPoint or OpenOffice.org Impress). Combined with an instance of instance of Presentation these classes implement the Bridge Pattern

Parameters:

  • system: a <no title> object letting us control the remote system

  • config: a <no title> object containing the config information for this user

close_presentation(save=False)

Close the currently open spreadhseet.

Parameters:

  • save: whether or not to save any changes on close

Return: True iff things seem to work correctly

load_presentation(path)

Open an existing presentation stored at the given path.

Parameters:

  • path: the path on the system being controlled to the desired presentation

Return: True iff the presentation seems to have opened

open()

Open the application. Generally this will have a default, blank sheet.

PresentationImpl.get_presentation(system, config, p_type=None)

I am a Factory method for creating instances of concrete subclasses of <no title>. Typically these are used as the implementor in the <no title> object the <no title> interacts with, thus using both the Bridge Pattern and the Strategy Pattern.

Parameters:

  • system: a <no title> object used to interact with the target

  • config: a <no title> object defining this user

  • p_type: optionally the type of PresentationImpl to create, overriding what’s specifid in the config object

Return: an instance of PersentationImpl if one can be found, or None if no matching type is found