//-----------------------------------------------// // This file defines the spin on a lattice // // position. Read and change direction are // // implemented at the time. // // // // Thomas Bisig (03.2005), thomas@macapp.net // //-----------------------------------------------// #ifndef SPIN_HPP #define SPIN_HPP class Spin { public: Spin(); void changeDirection(int); int readDirection(); void randomize(); private: int direction; }; Spin::Spin() { direction=1; } void Spin::changeDirection(int i) { direction = i; } int Spin::readDirection() { return direction; } void Spin::randomize() { } #endif