root / client / src / com / gonnatrak / client / state / LoggedInState.java @ 1

View | Annotate | Download

1
/**
2
 * Created by Andrey Khalzov
3
 * 30.12.2008 3:33:45
4
 */
5
package com.gonnatrak.client.state;
6
7
import com.gonnatrak.client.state.command.StateCommand;
8
9
import java.util.Map;
10
11
public class LoggedInState implements State {
12
13
    private static LoggedInState instance = new LoggedInState();
14
15
    public static LoggedInState getInstance() {
16
        return instance;
17
    }
18
19
    private LoggedInState() {
20
    }
21
22
    public void executeCommand(StateCommand stateCommand) {
23
        stateCommand.executeForLoggedInState();
24
    }
25
26
    public void executeCommandWithParams(StateCommand stateCommand, Map<String, String> params) {
27
        stateCommand.executeForLoggedInStateWithParams(params);
28
    }
29
}