public void parsercommand(String componentType,String componentName, String command)
{
	Component component= engine.getPowerPlantComponent(componentName);

				if(component.getName() =="valve")
				{
					InfoPacket i = new InfoPacket();
					i.namedValues.add(new Pair<String>(Pair.Label.cNme,  component.getName()));
						if(command=="open")
						{
							i.namedValues.add(new Pair<Boolean>(Pair.Label.psit, true));
						}
						else
						{
							i.namedValues.add(new Pair<Boolean>(Pair.Label.psit, false));
						}
				}
				else if(component.getName() =="pump")
				{
					InfoPacket i = new InfoPacket();
					i.namedValues.add(new Pair<String>(Pair.Label.cNme, component.getName()));
					if(command=="on")
					{
						i.namedValues.add(new Pair<Boolean>(Pair.Label.psit, true));
					}
					else
					{
						i.namedValues.add(new Pair<Boolean>(Pair.Label.psit, false));
					}
				}
				else if(component.getName() =="rods")
				{
						InfoPacket i = new InfoPacket();
						i.namedValues.add(new Pair<String>(Pair.Label.cNme, component.getName()));
						if(command=="lower")
						{
							i.namedValues.add(new Pair<Boolean>(Pair.Label.psit, true));
						}
						else
						{
							i.namedValues.add(new Pair<Boolean>(Pair.Label.psit, false));
						}
				}
				else
				{
					System.out.println("wrong command entered");
				}
		}