
            /**
            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.*;    
                
            
            /**
              
		Sets the password for Bot and control connections. If the
		password is set the initiation of GB communication is changed to
		this: 1) A ---> GB sends HELLO message 2) B <--- user
		sends READY 3) C ... if the server is protected by pass: 3.a) C1
		---> GB sends PASSWORD {BlockedByIP="ip adress with port of
		the blocker (195.113.12.3:3001)"} 3.b) C2 <--- user sends
		password ( PASSWORD {Password pass}) ... if correct 3.c) C3
		---> GB sends PASSWDOK and info batch messages, user can
		continue normally .... if the password is wrong 3.d) C4 --->
		PASSWDWRONG and connection ends Note: If the user knows that
		server is passworded he can use PASSWORD {Password pass} command
		instead of READY, and will be checked and sent info batch
		messages immediately
	
                          Corresponding GameBots command is 
                          SETPASS.
                      
             */
            
            public class
            SetPassword extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command SetPassword.
              
		Sets the password for Bot and control connections. If the
		password is set the initiation of GB communication is changed to
		this: 1) A ---> GB sends HELLO message 2) B <--- user
		sends READY 3) C ... if the server is protected by pass: 3.a) C1
		---> GB sends PASSWORD {BlockedByIP="ip adress with port of
		the blocker (195.113.12.3:3001)"} 3.b) C2 <--- user sends
		password ( PASSWORD {Password pass}) ... if correct 3.c) C3
		---> GB sends PASSWDOK and info batch messages, user can
		continue normally .... if the password is wrong 3.d) C4 --->
		PASSWDWRONG and connection ends Note: If the user knows that
		server is passworded he can use PASSWORD {Password pass} command
		instead of READY, and will be checked and sent info batch
		messages immediately
	Corresponding GameBots message for this command is 
              SETPASS.
                  @param Password Holds the password.
              */
             public SetPassword(
                String Password) {
                    
                    this.Password = Password;
                
                }
               
            
            		/**
		             Creates new instance of command SetPassword.
		             
		Sets the password for Bot and control connections. If the
		password is set the initiation of GB communication is changed to
		this: 1) A ---> GB sends HELLO message 2) B <--- user
		sends READY 3) C ... if the server is protected by pass: 3.a) C1
		---> GB sends PASSWORD {BlockedByIP="ip adress with port of
		the blocker (195.113.12.3:3001)"} 3.b) C2 <--- user sends
		password ( PASSWORD {Password pass}) ... if correct 3.c) C3
		---> GB sends PASSWDOK and info batch messages, user can
		continue normally .... if the password is wrong 3.d) C4 --->
		PASSWDWRONG and connection ends Note: If the user knows that
		server is passworded he can use PASSWORD {Password pass} command
		instead of READY, and will be checked and sent info batch
		messages immediately
	Corresponding GameBots message for this command is 
		             SETPASS.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  SetPassword() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        Holds the password. */
        protected
         String Password = 
        	null;
        
        
        /**
        Holds the password. */
        public
        String getPassword() {
            return
         Password;
        }
        

        
            /**         
        Holds the password. */
        public SetPassword setPassword(String Password) {
            this.Password = Password;
            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 SetPassword(SetPassword original) {
                
                     this.Password=original.Password;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Password</b> : " + 
            String.valueOf(Password) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("SETPASS");
              		
		    					if (Password != null) {
		    						buf.append(" {Password " + Password + "}");
		    					}
		    				            
            		return buf.toString();
            }
             
             }
                         
        