package org.openhab.io.semantic.tests;

import org.openhab.io.semantic.core.QueryResult;
import org.openhab.io.semantic.core.SemanticService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SemanticServiceTestImpl implements SemanticService {
	private static Logger logger = LoggerFactory.getLogger(SemanticServiceTestImpl.class);
	
	public void activate(){
		logger.debug("Test Impl of semantic service activated");		
	}
	
	public void deactivate() {
		logger.debug("Test Impl of semantic service deactivated");	
	}

	@Override
	public QueryResult executeSelect(String queryAsString) {
		return new QueryResultTestImpl(queryAsString);
	}

	@Override
	public QueryResult executeSelect(String queryAsString, boolean withLatestValues) {
		return new QueryResultTestImpl(queryAsString);
	}

	@Override
	public boolean executeAsk(String askAsString) {
		return true;
	}

	@Override
	public boolean executeAsk(String askAsString, boolean withLatestValues) {
		return true;
	}

	@Override
	public QueryResult sendCommand(String queryAsString, String command) {
		return new QueryResultTestImpl(queryAsString);
	}

	@Override
	public QueryResult sendCommand(String queryAsString, String command, boolean withLatestValues) {
		return new QueryResultTestImpl(queryAsString);
	}

	@Override
	public String getCurrentInstanceAsString() {
		return "static test instance";
	}

	@Override
	public void setAllValues() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String getRestUrlForItem(String uid) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getTypeName(String itemName) {
		return "default type name";
	}

	@Override
	public String getLocationName(String itemName) {
		return "default location name";
	}

}

@@ -1769,10 +1769,115 @@
 e%22;%0A%09%7D%0A%0A
+%09@Override%0A%09public QueryResult getAllSensors() %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null;%0A%09%7D%0A%0A
 %7D%0A

fix error in test bundle