Package eas.users.fredy.grid.utiles.stimuli

Examples of eas.users.fredy.grid.utiles.stimuli.Stimuli


        this.i_current_timeslot = (int) Math.round(simTime.getCurrentTime());
        System.out.println("-MGM: Here is manager agent " + this.id()
                + " at timeslot " + this.i_current_timeslot+"...");
       
       
        Stimuli s_aux = null;               
        if( this.i_current_timeslot > 0 ) {                   
            /*
             * Checking stimuli construction process: real vs ideal load
             */
            s_aux = StimuliTranslator.getStimuliSignal(
View Full Code Here


                /*
                 * The stimuli of the previous timeslot are requested.
                 * CHECKED!!!
                 */
                //System.out.println("-PROSUMER "+this.id()+" Printing stimuli:\n\t"+this.ss_stimuli.toString());
                Stimuli s_stimuliForHeuristics = (Stimuli) this.ss_stimuli.getStimuli(this.i_currentTimeslot - 1);
                //System.out.println("-PROSUMER "+this.id()+": Getting heuristic values "+s_stimuliForHeuristics.toString());
               
                /*
                 * Checking method "getHeuristicValues"
                 * CHECKED!!!
 
View Full Code Here

   
    @SuppressWarnings("unused")
    public void receiveMessageFromManager(int id, Object obj) {
       
        try{
            Stimuli s_aux = (Stimuli) obj;
                       
            this.ss_stimuli.addStimuli(s_aux, s_aux.getTimeSlot());
            System.out.println("-PROSUMER " + this.id()
                    + ": Stimuli received from MGM at timeslot "
                    + this.i_currentTimeslot);
            //System.out.println("-PROSUMER "+this.id()+" Printing stimuli\n" + s_aux.toString());
        }
View Full Code Here

                d_stimuliValue[i] = 0
               
            }
        }
       
        Stimuli s_stimuli = new Stimuli(i_timeslot,d_stimuliValue);
       
        //System.out.println("\t Printing stimuli\n\t"+s_stimuli.toString());
       
        return s_stimuli;
    }
View Full Code Here

TOP

Related Classes of eas.users.fredy.grid.utiles.stimuli.Stimuli

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.