}
public ATermAppl getValue( int i ) {
switch( status ) {
case NO_VALUES:
throw new InternalReasonerException( "This datatype is empty!" );
case ONLY_TRUE:
if( i == 0 )
return ATermUtils.makeTypedLiteral( "true", name.getName());
else
throw new InternalReasonerException( "No more values!" );
case ONLY_FALSE:
if( i == 0 )
return ATermUtils.makeTypedLiteral( "false", name.getName());
else
throw new InternalReasonerException( "No more values!" );
case BOTH_VALUES:
if( i == 0 )
return ATermUtils.makeTypedLiteral( "true", name.getName());
else if( i == 1 )
return ATermUtils.makeTypedLiteral( "false", name.getName());
else
throw new InternalReasonerException( "No more values!" );
}
throw new InternalReasonerException( "Invalid status!" );
}