예제 #1
0
	public Attack (Event Event) {
		setUser(Event.GetUser());
		setDetectionPoint(Event.GetDetectionPoint());
		setTimestamp(Event.GetTimestamp());
		setDetectionSystemId(Event.GetDetectionSystemId());
		setResource(Event.getResource());
	}
예제 #2
0
 public Attack(Event Event)
 {
     setUser(Event.GetUser());
     setDetectionPoint(Event.GetDetectionPoint());
     setTimestamp(Event.GetTimestamp());
     setDetectionSystemId(Event.GetDetectionSystemId());
     setResource(Event.getResource());
 }
예제 #3
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }

            Event other = (Event)obj;

            /*return new EqualsBuilder().
             *              Append(user, other.GetUser()).
             *              Append(detectionPoint, other.GetDetectionPoint()).
             *              Append(timestamp, other.GetTimestamp()).
             *              Append(detectionSystemId, other.GetDetectionSystemId()).
             *              Append(resource, other.getResource()).
             *              isEquals();*/
            if (user.Equals(other.GetUser()) &&
                detectionPoint.Equals(other.GetDetectionPoint()) &&
                timestamp.Equals(other.GetTimestamp()) &&
                detectionSystemId.Equals(other.GetDetectionSystemId()) &&
                resource.Equals(other.getResource()))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }