*/
@SuppressWarnings("serial")
public class DayNightWordCondition extends Condition {
public boolean satisfiedBy(Object conditional) {
if (conditional instanceof WordToken) {
WordToken wt = (WordToken) conditional;
String text = wt.getText();
if (text.length() == 3) {
text = text.toUpperCase();
if ((text.charAt(2) == 'M') && (text.charAt(1) == '.')
&& ((text.charAt(0) == 'A') || (text.charAt(0) == 'P'))) {
return true;