Apresentação OO

download Apresentação OO

of 10

Transcript of Apresentação OO

  • 8/20/2019 Apresentação OO

    1/24

    UNIVERSIDADE FEDERAL DO PARÁ

    INSTITUTO DE CIÊNCIAS EXATAS E NATURAIS

    FACULDADE DE COMPUTAÇÃO

    PROGRAMAÇÃO II Apresentação da Classe iPad

     Aluno: Edson Alessandro F. Costa

    Docente: Claudomiro de Souza de Sales Junior

  • 8/20/2019 Apresentação OO

    2/24

    DIAGRAMA UML (ATRIBUTOS)

  • 8/20/2019 Apresentação OO

    3/24

    DIAGRAMA UML (MÉTODOS PÚBLICOS)

  • 8/20/2019 Apresentação OO

    4/24

    DIAGRAMA UML (MÉTODOS PRIVADOS)

  • 8/20/2019 Apresentação OO

    5/24

     ATRIBUTOS DA CLASSE IPAD

     Atributos

    bool isTurnedOn;

    float storageCapacity; // Measured in GB

    float freeMemory; // Measured in GB

    string lockScreenPassword;

    bool screenLocked;

    bool wiFiOn;bool mobileDataOn;

    unordered_map appsInstalled;

    vector activeApps;

  • 8/20/2019 Apresentação OO

    6/24

    MÉTODOS DA CLASSE IPAD

    void turnOn();

    void turnOff();

    bool installApp(const string &, float);

    bool uninstallApp(const string &);

    bool openApp(const string &) ;

    bool closeApp(const string &);

    void showAppsInstalled();

    void showActiveApps();

    void getInformation()

    bool closeAllApps();

    bool uninstallAllApps

    bool unlockScreen();

    bool lockScreen();

    void turnWiFiOnOff();

    void turnMobileDataO

    • Métodos

  • 8/20/2019 Apresentação OO

    7/24

    MÉTODOS DA CLASSE IPAD

    Funções Auxiliares

    bool isOn();

    bool isAppInstalled(const string &);

    bool isAppOpen(const string &);

    bool isIPadEmpty();

    void setSpecsToDefault ();

    void installDefaultApps();

    bool validateValue(float, float, float, const string &);

    bool setLockScreenPassword();

    bool isScreenUnlocked();

    Construtores

    IPad();

    IPad(int storage

  • 8/20/2019 Apresentação OO

    8/24

    CONSTRUTORESIPad::IPad ()

    {

    cout

  • 8/20/2019 Apresentação OO

    9/24

    CONSTRUTOR VAZIOIPad::IPad ()

    {

    cout

  • 8/20/2019 Apresentação OO

    10/24

    CONSTRUTOR VAZIOIPad::IPad ()

    {

    cout

  • 8/20/2019 Apresentação OO

    11/24

    CONSTRUTOR VAZIOIPad::IPad ()

    setLockScreenPassword ();

    void IPad::setLockScreenPassword ()

    { string password ; while (true){

    cout

  • 8/20/2019 Apresentação OO

    12/24

    MÉTODO INSTALAR APLICATIVO bool IPad::installApp(const string &name, float sizeOfApp)

    {

    if (not isAppInstalled (name)) // Check to see if the app isn't alre

    {

    if (sizeOfApp/1000

  • 8/20/2019 Apresentação OO

    13/24

    MÉTODO DESINSTALAR APLICATIVO bool IPad::uninstallApp(const string &name)

    {

    if (isAppInstalled (name)) // Check to see if the app is indeed inst

    {

    cout

  • 8/20/2019 Apresentação OO

    14/24

    MÉTODO ABRIR APLICATIVO bool IPad::openApp(const string &name)

    {

    if (isAppInstalled (name)) // Check to see if the app is installed 

    {

    if (not isAppOpen(name)) // Check to see if the app isn't alrea{

    activeApps.push_back(name);

    cout

  • 8/20/2019 Apresentação OO

    15/24

    MÉTODO DESINSTALAR TODOS APPS bool IPad::uninstallAllApps()

    {

    if (not appsInstalled.empty()) // Check to see if there is any app

    {

    activeApps.clear(); // Close all apps

    appsInstalled.clear(); // Uninstall all apps

    freeMemory = storageCapacity; // Reset memory to its initial st

    cout

  • 8/20/2019 Apresentação OO

    16/24

    MAIN

    1 => Show Open Apps3 => Uninstall App

    5 => Get iPad Information

    7 => Close App

    9 => Uninstall All Apps

    11 => Turn Wi-Fi Off 

    13 => Turn Mobile Data Off 

    15 => Lock Screen

    17 => Turn Off 

    • Funcionamento do Programa Principal

    .: iPad Control Center :.

    2 => Install App4 => Show Apps Installed

    6 => Open App

    8 => Close All Apps

    10 => Turn Wi-Fi On

    12 => Turn Mobile Data On

    14 => Unlock Screen

    16 => Turn On

    18 => Quit 

    >> Enter your choice:

  • 8/20/2019 Apresentação OO

    17/24

    MAIN• Funcionamento do Programa Principal

  • 8/20/2019 Apresentação OO

    18/24

    MAIN• Funcionamento do Programa Principal

  • 8/20/2019 Apresentação OO

    19/24

    MAIN• Funcionamento do Programa Principal

  • 8/20/2019 Apresentação OO

    20/24

    MAIN• Funcionamento do Programa Principal

  • 8/20/2019 Apresentação OO

    21/24

    MAIN• Funcionamento do Programa Principal

  • 8/20/2019 Apresentação OO

    22/24

    MAIN• Funcionamento do Programa Principal

  • 8/20/2019 Apresentação OO

    23/24

    MAIN• Funcionamento do Programa Principal

  • 8/20/2019 Apresentação OO

    24/24

    MAIN• Funcionamento do Programa Principal