Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Zehra Baig
- //CSC-236-C1
- //Lab 2-A
- public interface LockADT
- {
- //Sets value of the first number of the combination
- public abstract void setX(int x);
- //Sets value of the second number of the combination
- public abstract void setY(int y);
- //Sets value of the third number of the combination
- public abstract void setZ(int z);
- //Sets values of all three numbers of the combination
- public abstract void alter(int xValue, int yValue, int zValue);
- //Turns according to rotation number
- public abstract boolean turn(int combo, int turnNumber);
- //Locks the combination lock
- public abstract void close();
- //Attempts to unlock
- public abstract void attempt(int xValue, int yValue, int zValue);
- //Checks if the combination lock is locked or not
- public abstract String inquire();
- //Returns what number is currently at the top of the dial
- public abstract int current();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement