public static void send(int src,int dest,double delay,int tag,Object data){
  if (delay < 0) {
    throw new IllegalArgumentException("Send delay can't be negative.");
  }
  SimEvent e=new SimEvent(SimEvent.SEND,clock + delay,src,dest,tag,data);
  future.addEvent(e);
}

public static void send ( int src , int dest , double delay , int tag , Object data ) { if ( delay < 0 ) { throw new IllegalArgumentException ( "Send delay can't be negative." ) ; } SimEvent e = new SimEvent ( SimEvent . SEND , clock + delay , src , dest , tag , data ) ; future . addEvent ( e ) ; }
used to send an event from one entity to another .
