/*
 * Signal.java
 *
 * Created on 25 of June 2007, 17:14
 */

/**
 *
 * @author Eng. Paulo Roque Silva
 */
import java.io.*;

public class Signal implements Serializable {
    public static final long    serialVersionUID = 00032012L; // Data version
    int 		 				emitter, 		// The identification of the node that emitted the signal 
    							status;			// Variavel totalSenses
    boolean 					active;  	    // If the signal is or isn't present
    float						recPower,		// The strong of the received and recorded signal
    							actPower,		// The strong of the received signal, DOR% or NOROADRENALINA#(ID)
    							recValue;		// Times that fired
    
    /** Creates a new instance of Signal */
    public Signal(int em, float pwr) {
        
        emitter  = em;
        active   = false;
        recPower = pwr;			// Never changes
        actPower = pwr;			// to be reset to a new value
        recValue = 0;
        status   = 0;
    }
    
    public void setActive(boolean ac) {
        
        active = ac;
    }

    public void setValue(float vl) {
        
        recValue = vl;
    }

    public void setActPower(float pw) {
        
        actPower = pw;
    }

    public void setStatus(int st) {
        
        status = st;
    }
}
