Results 1 to 8 of 8
Thread: Cipher System
- 12-27-2011, 08:43 PM #1
Member
- Join Date
- Dec 2011
- Location
- Malta
- Posts
- 6
- Rep Power
- 0
- 12-27-2011, 08:48 PM #2
Re: Cipher System
First have you studied the façade design pattern and understand what it means to use it in a program design?
If not, copy the parts you do not understand here and ask questions about it.
-
- 12-27-2011, 09:03 PM #4
Member
- Join Date
- Dec 2011
- Location
- Malta
- Posts
- 6
- Rep Power
- 0
Re: Cipher System
Yes I have done an overview of all the design patterns and also found examples but still can't fully understand the question. I have a copy of the assignment sheet the problem is where it comes to both the cipher module and ui model pages 5 and 7. Thanks a lot for the help. https://viewer.zoho.com/docs/g8acci - the assignment sheet
-
Re: Cipher System
I believe that your assignment tells you what must be done:
This module should be designed to conform to the Facade Design Pattern which specifies the following
1. An interface which defines the signature of all methods to be provided by the module.
2. An implementation class (one or more) which implements the module interface.
And so I would do just this: figure out what general methods would be needed by all Cipher classes, and create an interface with just those methods. Then have all Cipher classes implement that interface.
- 12-27-2011, 09:56 PM #6
Re: Cipher System
Cross posted at Java Assignment Problem - Java | DaniWeb
-
Re: Cipher System
- 12-28-2011, 11:29 AM #8
Member
- Join Date
- Dec 2011
- Location
- Malta
- Posts
- 6
- Rep Power
- 0
Re: Cipher System
I'm sorry I didn't know I'm sort of new at this. Regarding the façade pattern I think it's working as it suppose to. I have a problem regarding the Key class, I don't know exactly if I have initialise a String a variable in the key superclass. The given question is shown below:
hierarchy of Keys should be developed to group all common functionality that might be used in different cipher keys. An abstract class called Key should be developed as a basis of all Cipher Keys used by the system. It should at least provide the following methods:
String toString()
boolean setValue(String) (set internal state from String parameter if value is valid)
boolean isValid(String)
String generateRandom()
Classes that might subclass Key are:
NumberKey – holding the key value as an integer. Used for Caesar and Transposition.
StringKey – which keeps the key as a String. Might also keep a Map for fast reverse
lookup while deciphering. May be used for Simple Substitution and Vigenère.
The whole Key hierarchy should be stored in a sub-package called key.
Similar Threads
-
symmetric cipher help
By George Lucas in forum New To JavaReplies: 2Last Post: 12-27-2011, 09:21 PM -
Cipher Program
By Shyamz1 in forum New To JavaReplies: 2Last Post: 09-20-2011, 11:28 PM -
Caesar Cipher?
By socboy6579 in forum Advanced JavaReplies: 5Last Post: 10-29-2010, 10:59 PM -
How to cipher a string without using Cipher class?
By arnab321 in forum New To JavaReplies: 1Last Post: 09-08-2009, 11:19 PM -
cipher.. Won't work
By jgonzalez14 in forum New To JavaReplies: 1Last Post: 11-18-2008, 01:22 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks