-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRule.java
More file actions
executable file
·37 lines (34 loc) · 904 Bytes
/
Rule.java
File metadata and controls
executable file
·37 lines (34 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Written by Daniel Barter, Alby Himelick, and Grace Whitmore.
* For CS204 - Software Design
* 4 June 2012
*
* Rule is the class that contains the individual rules that
* combined govern a transition's behavior. As it is, it seems
* silly to have such a class when it is just a single character
* string, but we did it this way so we could easily accomodate
* PDA and possibly Turing Machine rules if we wanted to.
*
* Rule contains:
* - String inputChar: the character this rule represents.
*/
public class Rule
{
private String inputChar;
/**
* Constructor for Rule.
*
* String inputChar: the single character string this rule represents.
*/
public Rule(String inputChar)
{
this.inputChar = inputChar;
}
/**
* Returns the input character
*/
public String getInputChar()
{
return inputChar;
}
}