Exemplo n.º 1
0
    public Transmission(Port source, Port destination, ScheduleEntry schedule)
    {
        id = ID_INCREMENT++;

        this.source      = source;
        this.destination = destination;
        this.schedule    = schedule;

        float timeEnd = schedule.endTime;;

        source.reserve(this, timeEnd, true);
        destination.reserve(this, timeEnd);

        clientName  = NameGenerator.GenName();
        contentName = NameGenerator.GenContent();

        Debug.Log("Transmission [" + id.ToString() + "] starting at " + Time.time.ToString());
    }