package SCHUNK.EndOfArm.impl;

import com.ur.urcap.api.contribution.ProgramNodeContribution;
import com.ur.urcap.api.contribution.ProgramNodeService;
import com.ur.urcap.api.domain.URCapAPI;
import com.ur.urcap.api.domain.data.DataModel;

import java.io.InputStream;

public class GrpOpenProgramNodeService implements ProgramNodeService {
		
	public GrpOpenProgramNodeService() {
	}

	@Override
	public String getId() {
		return "GrpOpenProgNode";
	}

	@Override
	public String getTitle() {
		return eoa_Language.LanguagePack.getInstance().getTextResource().get_Title_Grp_Open();
	}

	@Override
	public InputStream getHTML() {
		InputStream is = this.getClass().getResourceAsStream("/Schunk/Gripper/impl/GrpOpenProgramNode.html");
		return is;
	}

	@Override
	public boolean isDeprecated() {
		return false;
	}

	@Override
	public boolean isChildrenAllowed() {
		return false;
	}

	@Override
	public ProgramNodeContribution createNode(URCapAPI api, DataModel model) {

		return new GrpOpenProgramNodeContribution(api, model);
	}
}
