Package eas.users.fredy.grid.prosumer.repository.schedule

Examples of eas.users.fredy.grid.prosumer.repository.schedule.Schedule


                        p_aux.getLatestExecutionTime());

                al_p_new_schedule.add(p_appliance_rescheduled);
                RepositoryManager.updateProbabilities(new ProbabilityStorage(p_aux.getAppliance(),i_timeslot,d_PDF,d_CDF));
            }
            Schedule s_schedule = new Schedule(al_p_new_schedule, i_timeslot);
            // RepositoryManager.updateSchedule(s_schedule, i_timeslot);
            // RepositoryManager.updateHeuristics(new
            // HeuristicValue(i_timeslot,d_heuristics));

            return s_schedule;
View Full Code Here


            this.al_idealLoads.add(gil_first);
            //System.out.println("\tPrinting ideal load:\n\t"+this.al_idealLoads.get(0).toString());
        }

        try{
            Schedule s_schedule = (Schedule) obj;
                           
            this.al_realLoads.get(0).addLoads(s_schedule);
        }
        catch(Exception e){
            System.out.println(e);
View Full Code Here

     */
    public void receiveMessageFromProsumer(Object obj, int id) {
        System.out.println("-MGM: Object received from agent " + id);

        try{
            Schedule s_schedule = (Schedule) obj; 
            this.al_realLoads.get(this.al_realLoads.size() - 1).addLoads(s_schedule);
        }
        catch(Exception e){
            System.out.println(e);
            System.out.println("-MGM: Failure with object received from Prosumer "+id);
View Full Code Here

                /*
                 * Checking rescheduling process
                 * CHECKED!
                 */
                //System.out.println("-PROSUMER "+this.id()+": Initiating rescheduling process...");
                Schedule s_updatedSchedule = Rescheduler.reschedule(
                        this.i_currentTimeslot, al_reschedubleApp, d_heuristics, rand);
               
                //System.out.println("-PROSUMER "+this.id()+": Rescheduled appliances\n\t"+s_updatedSchedule.toString());
               
                /*
 
View Full Code Here

TOP

Related Classes of eas.users.fredy.grid.prosumer.repository.schedule.Schedule

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.