?? tempfile.tmp
字號:
/*
* Copyright(C) 2008, NTT AT Co., Ltd.
* Project: AWGStar
*
* Notes:
* N/A
*
* Record of change:
* Date Version Name Content
* 2008/12/15 1.0 TuanNA First create
*/
package jp.co.ntt.awgview.server.vo;
import java.io.Serializable;
import java.util.Vector;
/**
* Class name : BlockVO <BR>
*
* Package : jp.co.ntt.awgview.server.vo <BR>
*
* Description: Store information about function block of a node<BR>
*
* @author : AI&T
* @version : 1.0
*/
public class BlockVO implements Serializable {
private static final long serialVersionUID = 7526471155622776147L;
/** Define fields of database table */
public static final String BLOCK_TBL = "block_tbl";
public static final String BLOCK_ID = "block_id";
public static final String BLOCK_NAME = "block_name";
public static final String BLOCK_IP = "block_ip";
public static final String BLOCK_TYPE = "block_type";
public static final String BLOCK_ALARM = "block_alarm";
public static final String BLOCK_POS_X = "block_pos_x";
public static final String BLOCK_POS_Y = "block_pos_y";
public static final String BLOCK_POS_W = "block_pos_w";
public static final String BLOCK_POS_H = "block_pos_h";
<<<<<<< .mine
/*ID of Block contained in database*/
private long blockID = -1;
/*Name of function block*/
private String blockName = "";
/*IP address of function block*/
private String blockIP = "";
/*Type of function block*/
private int blockType = -1;
/*Alarm value of Block*/
private int blockAlarm = 0;
private int blockPosX = 0;
=======
/*ID of Block contained in database*/
private long blockID = -1;
/*Name of function block*/
private String blockName = "";
/*IP address of function block*/
private String blockIP = "";
/*Type of function block*/
private int blockType = -1;
/*Alarm value of Block*/
private int blockAlarm = 0;
/** Block position X*/
private int blockPosX = 0;
/** Block position Y*/
>>>>>>> .r1233
private int blockPosY = 0;
/** Block position width*/
private int blockWidth = 0;
/** Block position heigh*/
private int blockHeigh = 0;
/** Node id*/
private long nodeID = -1;
/** PackageVO list*/
private Vector<PackageVO> listPackageVO = null;
/** Node parent*/
private NodeVO parentObject = null;
/**
* Empty constructor
*/
public BlockVO() {
listPackageVO = new Vector<PackageVO>();
}
/**
* Returns the PackageVO List
* @return Vector<PackageVO>
*/
public Vector<PackageVO> getListPackageVO() {
return listPackageVO;
}
/**
* Return the PackageVO with a specified condition
*
* @param index
* @return PackageVO
*/
public PackageVO getPackageVO(int index) {
if ((listPackageVO != null) && (!listPackageVO.isEmpty())) {
return listPackageVO.get(index);
}
return null;
}
/**
* Returns the Parent Object
* @return NodeVO
*/
public NodeVO getParentObject() {
return parentObject;
}
/**
* Sets the Parent Object with a specified condition
* @param obj
*/
public void setParentObject(NodeVO obj) {
parentObject = obj;
}
/**
* Return Parent ID
* @return long
*/
public long getParentID() {
return nodeID;
}
/**
* Sets the Parent ID
* @param parentID
*/
public void setParentID(long parentID) {
nodeID = parentID;
}
/**
* Sets the Block ID
* @param intBlockID
*/
public void setID(long intBlockID) {
this.blockID = intBlockID;
}
/**
* Return Block ID
* @return
*/
public long getID() {
return this.blockID;
}
/**
* Sets the Block IP Adress
* @param strBlockIPAdress
*/
public void setIP(String strBlockIPAdress) {
this.blockIP = strBlockIPAdress;
}
/**
* Return the block IP Address
* @return blockIP
*/
public String getIP() {
return this.blockIP;
}
/**
* Sets the block name
* @param strBlockName
*/
public void setName(String strBlockName) {
this.blockName = strBlockName;
}
/***
* Returns the Block name
* @return
*/
public String getName() {
return this.blockName;
}
/**
* Set the Block type
* @param blockType
*/
public void setType(int blockType) {
this.blockType = blockType;
}
/**
* Returns the Block type
* @return blockType
*/
public int getType() {
return this.blockType;
}
/**
* Sets the Block Alarm
* @param blockAlarm
*/
public void setAlarm(int blockAlarm) {
this.blockAlarm = blockAlarm;
}
/**
* Returns the Block Alarm
* @return blockAlarm
*/
public int getAlarm() {
return this.blockAlarm;
}
/**
* Sets the position x of Block
* @param intPositionX
*/
public void setPosX(int intPositionX) {
this.blockPosX = intPositionX;
}
/**
* Returns the Position x of Block
* @return
*/
public int getPosX() {
return this.blockPosX;
}
/**
* Sets the position y of Block
* @param intPositionY
*/
public void setPosY(int intPositionY) {
this.blockPosY = intPositionY;
}
/**
* Returns the Position y of Block
* @return
*/
public int getPosY() {
return this.blockPosY;
}
/**
* Sets the width of Block
* @param intWidth
*/
public void setWidth(int intWidth) {
this.blockWidth = intWidth;
}
/**
* Returns the Block width
* @return
*/
public int getWidth() {
return this.blockWidth;
}
/**
* Sets the Block heigh
* @param intHeigh
*/
public void setHeigh(int intHeigh) {
this.blockHeigh = intHeigh;
}
/**
* Returns the Block heigh
* @return
*/
public int getHeigh() {
return this.blockHeigh;
}
/**
* Return info of BlockVO
* @return a String object contains info of BlockVO
*/
public String toString() {
StringBuffer buff = new StringBuffer();
buff.append(" Block <");
buff.append("name: " + getName() + ", ");
buff.append("Type: " + getType() + ", ");
buff.append("x: " + getPosX() + ", ");
buff.append("y: " + getPosY() + ", ");
buff.append("w: " + getWidth() + ", ");
buff.append("h: " + getHeigh() );
buff.append(">");
return buff.toString();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -