All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ingenias.jade.smachines.Agent1InteractionLocks Maven / Gradle / Ivy


			/*
    Copyright (C) 2005 Jorge Gomez Sanz

    This file is part of INGENIAS Agent Framework, an agent infrastructure linked
    to the INGENIAS Development Kit, and availabe at http://grasia.fdi.ucm.es/ingenias or
    http://ingenias.sourceforge.net. 

    INGENIAS Agent Framework is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    INGENIAS Agent Framework is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with INGENIAS Agent Framework; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*/
			
			package ingenias.jade.smachines;			
			import jade.core.Agent;
			import jade.lang.acl.ACLMessage;
			import jade.lang.acl.MessageTemplate;
			import jade.core.behaviours.*;
			
			import java.io.IOException;
			import java.io.InterruptedIOException;
			import java.io.BufferedReader;
			import java.io.InputStreamReader;
			import java.net.InetAddress;
			
			import jade.core.*;
			import jade.core.behaviours.*;
			
			import jade.domain.FIPAAgentManagement.*;
			import jade.domain.FIPAException;
			import jade.domain.DFService;
			import jade.domain.FIPANames;
			import jade.lang.acl.ACLMessage;
			import ingenias.jade.*;
			import java.util.*;
			
			import ingenias.jade.mental.*;
			import ingenias.jade.comm.ConversationManagement;
			import ingenias.jade.comm.StateBehavior;
			import ingenias.jade.comm.LocksWriter;
			import ingenias.jade.components.*;
			import ingenias.jade.exception.*;
			import ingenias.jade.graphics.AgentGraphics;
			
			import javax.swing.*;
			
			import ingenias.jade.components.*;
			import java.awt.event.*;
			
			import java.awt.*;
			
			
			import ingenias.editor.entities.Entity;
			import ingenias.editor.entities.FrameFact;
			import ingenias.editor.entities.Interaction;
			import ingenias.editor.entities.MentalEntity;
			import ingenias.editor.entities.MentalStateProcessor;
			import ingenias.editor.entities.Slot;
			import ingenias.editor.entities.StateGoal;
			import ingenias.editor.*;
			
			import javax.swing.border.*;
			
			import org.jgraph.event.GraphModelEvent;
			import org.jgraph.event.GraphModelListener;
			import ingenias.jade.comm.CustomLocks;
			import org.jgraph.graph.DefaultGraphCell;
			public class Agent1InteractionLocks implements CustomLocks {
			
			public Agent1InteractionLocks(){};
			
			        public void addInteractionLocks(String interaction, LocksWriter lw, String role){
                                    
                   if (interaction.equals("Interaction0") && role.equals("Role1") ){
                            Role1Interaction0DefaultCommControl.addDefaultLocks(lw);
                   }
                  
		           // Interactions in which this agent appears as initiator                  
                  
        }
	}
			
			




© 2015 - 2025 Weber Informatics LLC | Privacy Policy