Exemple #1
0
        public override void LoadState(AgentState state)
        {
            MobileAgentState st = (MobileAgentState)state;

            _firstStart = st.FirstStart;
            _log        = st.Log;
            _moves      = st.Moves;
        }
Exemple #2
0
        public override AgentState SaveState()
        {
            MobileAgentState state = new MobileAgentState();

            state.FirstStart = _firstStart;
            state.Log        = _log;
            state.Moves      = _moves;
            return(state);
        }
Exemple #3
0
        public override AgentState SaveState()
        {
            var state = new MobileAgentState
            {
                FirstStart = _firstStart,
                Log        = _log,
                Moves      = _moves
            };

            return(state);
        }