/* * ObsState.java (Used to retrieve state of observerable). * * Written by : Nitin Jeevan Motgi (nmotgi@cs.ucf.edu) * * Provides a DS by extending this object from Object. * * Portions copyright(c) 2000 to School of Electrical Engineering and * Computer Science, UCF, Orlando. * * Use and distribution of this source code are strictly governed by terms * and conditions set by the author. * * $Id : ObsState.java, v1.0.0 02/15/2001. * * Revision History: * 1. Created Basic Structure Nitin 02/15/2001. * 2. Documentation added, Nitin 02/15/2001. * 3. Final Documentation Check Nitin * 4. Final Variable Name Check Nitin * 5. Final Functionality Check Nitin */ public class ObsState extends Object{ int nState; /* Stores the state of the Observable.*/ public ObsState(){ } /* Constructor does nothing.*/ public int Get(){ return nState; } /* Gets the State of Observable.*/ public void Set(int nState){this.nState = nState;} }/* End of ObsState.*/