package com.njcn.pojo.advanced;

import java.math.BigDecimal;

public class EntityLogic {
	//物理隔绝GUID
	private String tPIndex;
	//变压器逻辑上节点
	private Integer node_h;
	//变压器逻辑下节点
	private Integer node_l;
	// 变压器连接方式
	private Integer type;
	//变压器物理上节点
	private Integer nodeBefore;
	//变压器物理下节点
	private Integer nodeNext;

	public Integer getNodeBefore() {
		return nodeBefore;
	}

	public void setNodeBefore(Integer nodeBefore) {
		this.nodeBefore = nodeBefore;
	}

	public Integer getNodeNext() {
		return nodeNext;
	}

	public void setNodeNext(Integer nodeNext) {
		this.nodeNext = nodeNext;
	}

	public String gettPIndex() {
		return tPIndex;
	}
	
	public EntityLogic(String tPIndex, BigDecimal nodeBefore, BigDecimal nodeNext, BigDecimal type) {
		super();
		this.tPIndex = tPIndex;
		this.nodeBefore = nodeBefore.intValue();
		this.nodeNext = nodeNext.intValue();
		this.type = type.intValue();
	}

	@Override
	public boolean equals(Object obj) {
		return this.tPIndex.equals(((EntityLogic)obj).tPIndex);
	}

	@Override
	public int hashCode() {
		return this.tPIndex.hashCode();
	}

	public void settPIndex(String tPIndex) {
		this.tPIndex = tPIndex;
	}

	public Integer getNode_h() {
		return node_h;
	}

	public void setNode_h(Integer node_h) {
		this.node_h = node_h;
	}

	public Integer getNode_l() {
		return node_l;
	}

	public void setNode_l(Integer node_l) {
		this.node_l = node_l;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "EntityLogic [tPIndex=" + tPIndex + ", node_h=" + node_h + ", node_l=" + node_l + ", type=" + type + "]";
	}

    public EntityLogic() {

    }
}
