[][src]Trait caminos_lib::router::StatusAtEmissor

pub trait StatusAtEmissor {
    pub fn num_virtual_channels(&self) -> usize;
pub fn acknowledge(&mut self, message: AcknowledgeMessage);
pub fn notify_outcoming_phit(
        &mut self,
        virtual_channel: usize,
        cycle: usize
    );
pub fn can_transmit(&self, phit: &Rc<Phit>, virtual_channel: usize) -> bool;
pub fn can_transmit_whole_packet(
        &self,
        phit: &Rc<Phit>,
        virtual_channel: usize
    ) -> bool;
pub fn known_available_space_for_virtual_channel(
        &self,
        virtual_channel: usize
    ) -> Option<usize>;
pub fn get_last_transmission(&self) -> usize; }

Structure for a port to contain the information necessary about the other endpoint, so that we can know if we can send data.

Required methods

pub fn num_virtual_channels(&self) -> usize[src]

Get the number of virtual channels used in the link.

pub fn acknowledge(&mut self, message: AcknowledgeMessage)[src]

Receive a phit acknowledge from the receiving endpoint.

pub fn notify_outcoming_phit(&mut self, virtual_channel: usize, cycle: usize)[src]

Keep track of a outcoming phit.

pub fn can_transmit(&self, phit: &Rc<Phit>, virtual_channel: usize) -> bool[src]

Check if we can transmit a given phit.

pub fn can_transmit_whole_packet(
    &self,
    phit: &Rc<Phit>,
    virtual_channel: usize
) -> bool
[src]

Check if we can surely transmit and store the whole remaining of the packet.

pub fn known_available_space_for_virtual_channel(
    &self,
    virtual_channel: usize
) -> Option<usize>
[src]

Consult available space.

pub fn get_last_transmission(&self) -> usize[src]

Get timestamp of last transmission.

Loading content...

Implementors

impl StatusAtEmissor for StatusAtServer[src]

Loading content...