
            /**
            IMPORTANT !!!
       
            DO NOT EDIT THIS FILE. IT IS GENERATED FROM approriate xml file in xmlresources/gbcommands BY
            THE JavaClassesGenerator.xslt. MODIFY THESE FILES INSTEAD OF THIS ONE.
       
            IMPORTANT END !!!
            */
            package
            cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands;
	    		import java.util.*;    
    import javax.vecmath.*;    
    import cz.cuni.amis.pogamut.base.communication.messages.*;    
    import cz.cuni.amis.pogamut.base.agent.worldview.*;    
    import cz.cuni.amis.pogamut.base.agent.worldview.objects.*;    
    import cz.cuni.amis.pogamut.base.communication.translator.*;    
    import cz.cuni.amis.pogamut.ut2004.communication.translator.itemdescriptor.*;    
    import cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category;    
    import cz.cuni.amis.pogamut.base.exceptions.*;    
    import cz.cuni.amis.pogamut.base3d.worldview.objects.*;    
    import cz.cuni.amis.pogamut.ut2004.communication.messages.*;    
    import cz.cuni.amis.pogamut.ut2004.agent.worldview.objects.*;    
                
            
            /**
              
		Will disable new connections to bot server and or control server
		- depends on parameters. If last ControlServer instance is
		leaving. ControlServer lock will be canceled.
	
                          Corresponding GameBots command is 
                          SETLOCK.
                      
             */
            
            public class
            SetLock extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command SetLock.
              
		Will disable new connections to bot server and or control server
		- depends on parameters. If last ControlServer instance is
		leaving. ControlServer lock will be canceled.
	Corresponding GameBots message for this command is 
              SETLOCK.
                  @param BotServer 
			If BotConnections should be locked.
		
                  @param ControlServer 
			If ControlConnections (server connections) should be locked.
		
              */
             public SetLock(
                boolean BotServer,  boolean ControlServer) {
                    
                    this.BotServer = BotServer;
                
                    this.ControlServer = ControlServer;
                
                }
               
            
            		/**
		             Creates new instance of command SetLock.
		             
		Will disable new connections to bot server and or control server
		- depends on parameters. If last ControlServer instance is
		leaving. ControlServer lock will be canceled.
	Corresponding GameBots message for this command is 
		             SETLOCK.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  SetLock() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        
			If BotConnections should be locked.
		 */
        protected
         boolean BotServer = 
        	false;
        
        
        /**
        
			If BotConnections should be locked.
		 */
        public
        boolean isBotServer() {
            return
         BotServer;
        }
        

        
            /**         
        
			If BotConnections should be locked.
		 */
        public SetLock setBotServer(boolean BotServer) {
            this.BotServer = BotServer;
            return this;
            }
       
        /**
        
			If ControlConnections (server connections) should be locked.
		 */
        protected
         boolean ControlServer = 
        	false;
        
        
        /**
        
			If ControlConnections (server connections) should be locked.
		 */
        public
        boolean isControlServer() {
            return
         ControlServer;
        }
        

        
            /**         
        
			If ControlConnections (server connections) should be locked.
		 */
        public SetLock setControlServer(boolean ControlServer) {
            this.ControlServer = ControlServer;
            return this;
            }
       
            /////// Properties END
            
            /////// Extra Java code BEGIN
                        	
            	/////// Additional code from xslt BEGIN            	 
            			
            		
            		
            	/////// Additional code from xslt END            
				                    
	            /////// Extra Java from XML BEGIN
            		
            	/////// Extra Java from XML END
            	    
            /////// Extra Java code END
            
            
            
            /**
              * Cloning constructor.
              */
             public SetLock(SetLock original) {
                
                     this.BotServer=original.BotServer;
                
                     this.ControlServer=original.ControlServer;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>BotServer</b> : " + 
            String.valueOf(BotServer) + 
            " <br/> " +
             
            "<b>ControlServer</b> : " + 
            String.valueOf(ControlServer) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("SETLOCK");
              		
		    					buf.append(" {BotServer " + BotServer + "}");
		    				
		    					buf.append(" {ControlServer " + ControlServer + "}");
		    				            
            		return buf.toString();
            }
             
             }
                         
        