 and to celebrate our common humanity."
Berta-Torales believes that, through her photos, people will begin to hear the voices and see the faces of these varying minorities groups and, "hopefully change their minds and open their heart and their soul and be more accepting and compassionate about all of the different types of people we are living with everyday in this society.”
“I hope the role that I’m playing is to help open those doors and open those eyes,” she said.
People wanting to share a personal story can contact Valérie Berta-Torales Photography and click on "The WE Project."<filename>src/test/java/org/nextstate/statemachine/PhoneStateMachine.java
package org.nextstate.statemachine;

import static org.nextstate.statemachine.SimpleState.state;
import static org.nextstate.statemachine.Transition.transitions;

import java.util.Arrays;

/**
 * StateMachine for a phone inspired by: http://simplestatemachine.codeplex.com/
 * <p>
 * States and transitions:
 * <p>
 * state @OffHook:
 * when @CallDial  >> @Ringing
 * <p>
 * state @Ringing:
 * when @HangUp  >> @OffHook
 * when @ConnectCall  >> @Connected
 * <p>
 * state @Connected:
 * when @LeaveMessage  >> @OffHook
 * when @HangUp   >> @OffHook
 * when @PlaceOnHold  >> @OnHold
 * <p>
 * state @OnHold:
 * when @TakeOffHold >> @Connected
 * when @HangUp  >> @OffHook
 * when @HurlPhone >> @PhoneDestroyed
 * state @PhoneDestroyed
 * <p>
 * Events:
 * <p>
 * CallDial trigger @CallDialed
 * HangUp trigger @HungUp
 * ConnectCall trigger @CallConnected
 * LeaveMessage trigger @MessageLeft
 * PlaceOnHold trigger @PlacedOnHold: on_event @PlayMuzak
 * TakeOffHold trigger @TakenOffHold: on_event @StopMuzak
 * HurlPhone trigger @PhoneHurledAgainstWall
 */
class PhoneStateMachine extends StateMachine {
    // State names
    public static final String OFF_HOOK = "OffHook";
    public static final String RINGING = "Ringing";
    public static final String CONNECTED = "Connected";
    public static final String ON_HOLD = "OnHold";
    public static final String PHONE_DESTROYED = "PhoneDestroyed";

    // Event names
    private static final String CALL_DIALED = "CallDialed";
    private static final String HUNG_UP = "HungUp";
    private static final String CALL_CONNECTED = "CallConnected";
    private static final String MESSAGE_LEFT = "MessageLeft";
    private static final String PLACED_ON_HOLD = "PlacedOnHold";
    private static final String TOOK_OFF_HOLD = "TookOffHold";
    private static final String PHONE_HURLED_AGAINST_WALL = "PhoneHurledAgainstWall";

    // Name of transitions - (Commands resulting in triggering events)
    private static final String CALL_DIAL = "CallDial";
    private static final String HANG_UP = "HangUp";
    private static final String CONNECT_CALL = "ConnectCall";
    private static final String LEAVE_MESSAGE = "LeaveMessage";
    private static final String PLACE_ON_HOLD = "PlaceOnHold";
    private static final String TAKE_OFF_HOLD = "TakeOffHold";
    private static final String HURL_PHONE = "HurlPhone";

    {
        Action playMuzak = () -> System.out.println("PlayMuzak");
        Action stopMuzak = () -> System.out.println("StopMuzak");

        SimpleState offHook = state(OFF_HOOK)
               .onEntry(() -> System.out.println("In Sysout Action!")).build();
        State phoneDestroyed = state(PHONE_DESTROYED).build();
        SimpleState connected = state(CONNECTED).build();
        State onHold = state(ON_HOLD)
               .transition(HURL_PHONE).guardedBy(event -> PHONE_HURLED_AGAINST_WALL.equals(event.getName()))
               .to(phoneDestroyed)
               .transition(HANG_UP).guardedBy(event -> HUNG_UP.equals(event.getName()))
               .to(offHook)
               .transition(TAKE_OFF_HOLD).onTransition(stopMuzak)
               .guardedBy(event -> TOOK_OFF_HOLD.equals(event.getName()))
               .to(connected)
               .build();
        connected.addTransitions(transitions()
               .transition(PLACE_ON_HOLD)
               .onTransition(playMuzak).guardedBy(event -> event.getName().equals(PLACED_ON_HOLD))
               .to(onHold)
               .transition(HANG_UP).guardedBy(event -> event.getName().equals(HUNG_UP))
               .to(offHook)
               .transition(LEAVE_MESSAGE).guardedBy(event -> event.getName().equals(MESSAGE_LEFT))
               .to(offHook)
               .build());
        State ringing = state(RINGING)
               .transition(CONNECT_CALL).guardedBy(event -> event.getName().equals(CALL_CONNECTED))
               .to(connected)
               .transition(HANG_UP).guardedBy(event -> event.getName().equals(HUNG_UP))
               .to(offHook)
               .build();
        offHook.addTransitions(transitions()
               .transition(CALL_DIAL).guardedBy(event -> event.getName().equals(CALL_DIALED))
               .to(ringing).build());
        addStates(Arrays.asList(offHook, phoneDestroyed, onHold, connected, ringing));
        activeState(offHook);
        validate();
    }

    public static class CallDialed extends Event {
        public CallDialed() {
            super(CALL_DIALED);
        }
    }

    public static class HungUp extends Event {
        public HungUp() {
            super(HUNG_UP);
        }
    }

    public static class CallConnected extends Event {
        public CallConnected() {
            super(CALL_CONNECTED);
        }
    }

    public static class MessageLeft extends Event {
        public MessageLeft() {
            super(MESSAGE_LEFT);
        }
    }

    public static class PlacedOnHold extends Event {
        public PlacedOnHold() {
            super(PLACED_ON_HOLD);
        }
    }

    public static class TookOffHold extends Event {
        public TookOffHold() {
            super(TOOK_OFF_HOLD);
        }
    }

    public static class PhoneHurledAgainstWall extends Event {
        public PhoneHurledAgainstWall() {
            super(PHONE_HURLED_AGAINST_WALL);
        }
    }
}
<reponame>adrianodaddiego/visualstudio-docs.it-it<gh_stars>0
---
title: C28024
ms.date: 11/04/2016
ms.topic: reference
f1_keywords:
- C28024
helpviewer_keywords:
- C28024
ms.assetid: b74fad50-0a2e-43d7-ba5e-e9432aa9f7c8
author: mikeblome
ms.author: mblome
manager: wpickett
ms.workload:
- multiple
ms.openlocfilehash: 601679f11b470a19e7585b1590cbdb0ab5abea0d
ms.sourcegitcommit: 94b3a052fb1229c7e7f8804b09c1d403385c7630
ms.translationtype: MT
ms.contentlocale: it-IT
ms.lasthandoff: 04/23/2019
ms.locfileid: "62426896"
---
# <a name="c28024"></a>C28024
avviso C28024: Il puntatore a funzione assegnato è annotato con la classe di funzioni \<classe >, che non è contenuta nelle classi di funzioni \<classlist >.

 Questo avviso viene segnalato quando entrambe le fun