001        package com.croftsoft.apps.jogl;
002         
003        import com.croftsoft.core.lang.NullArgumentException;
004         
005        /***********************************************************************
006        * Jogl enumerated type message.
007        * 
008        * Use to pass messages between the model, view, and controller.
009        * 
010        * @version
011        *   $Id: JoglMessage.java,v 1.6 2008/05/17 00:18:02 croft Exp $
012        * @since
013        *   2008-02-10
014        * @author
015        *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
016        ***********************************************************************/
017    
018        public class  JoglMessage
019        ////////////////////////////////////////////////////////////////////////
020        ////////////////////////////////////////////////////////////////////////
021        {
022          
023        public enum  Type
024        {
025          CHANGE_PERTURBATION_FACTOR_EVENT,
026          CHANGE_PERTURBATION_FACTOR_REQUEST,
027          MOVE_REQUEST,
028        }
029         
030        public static JoglMessage
031          CHANGE_PERTURBATION_FACTOR_EVENT_INSTANCE
032            = new JoglMessage ( Type.CHANGE_PERTURBATION_FACTOR_EVENT ),
033          CHANGE_PERTURBATION_FACTOR_REQUEST_INSTANCE
034            = new JoglMessage ( Type.CHANGE_PERTURBATION_FACTOR_REQUEST );
035           
036        //
037           
038        private final Type  type;
039         
040        ////////////////////////////////////////////////////////////////////////
041        ////////////////////////////////////////////////////////////////////////
042         
043        public Type  getType ( ) { return type; }
044         
045        ////////////////////////////////////////////////////////////////////////
046        // protected methods
047        ////////////////////////////////////////////////////////////////////////
048         
049        protected  JoglMessage ( final Type  type )
050        ////////////////////////////////////////////////////////////////////////
051        {
052          NullArgumentException.check ( this.type = type );
053        }
054         
055        ////////////////////////////////////////////////////////////////////////
056        ////////////////////////////////////////////////////////////////////////
057        }