Package ptolemy.domains.de.lib.aspect
Class AFDXVlink
- java.lang.Object
-
- ptolemy.domains.de.lib.aspect.AFDXVlink
-
public class AFDXVlink extends java.lang.Object
This java object implements a virtual-link which belongs to the end-system of an AFDX Network. For more information please refer to: AFDX network simulation using PtolemyII.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- G. Lasnier
- Pt.AcceptedRating:
- Yellow (glasnier)
- Pt.ProposedRating:
- Yellow (glasnier)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
getBag()
Get the value of the bag.int
getFrameSize()
Get the frame size.java.lang.String
getName()
Get the name of the virtual link object.java.lang.String
getSchedulerMux()
Get the name of the scheduler multiplexor.Actor
getSource()
Get the source actor.void
setBag(java.lang.Double bag)
Set the value of the bag.void
setFrameSize(int size)
Set the frame size.void
setName(java.lang.String name)
Set the name of the virtual link object.void
setSchedulerMux(java.lang.String name)
Set the name of the scheduler multiplexor.void
setSource(Actor source)
Set the source actor.java.lang.String
toString()
Return a string representation of this object.
-
-
-
Constructor Detail
-
AFDXVlink
public AFDXVlink(Receiver source) throws IllegalActionException
Create a new virtual link object and initialize parameters.- Parameters:
source
- The source receiver.- Throws:
IllegalActionException
- If parameters cannot be initialized.
-
AFDXVlink
public AFDXVlink(java.lang.String nm, java.lang.Double b, int ts, java.lang.String sched, Actor src)
Constructor.- Parameters:
nm
- The name of the virtual-link.b
- The value of the bag.ts
- The size of the frame.sched
- The name of the virtual-link scheduler.src
- The initial actor connected to the virtual-link.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the virtual link object.- Returns:
- The name.
- See Also:
setName(String)
-
setName
public void setName(java.lang.String name)
Set the name of the virtual link object.- Parameters:
name
- The name.- See Also:
getName()
-
getBag
public java.lang.Double getBag()
Get the value of the bag.- Returns:
- The value.
- See Also:
setBag(Double)
-
setBag
public void setBag(java.lang.Double bag)
Set the value of the bag.- Parameters:
bag
- The value.- See Also:
getBag()
-
getFrameSize
public int getFrameSize()
Get the frame size.- Returns:
- The size.
- See Also:
setFrameSize(int)
-
setFrameSize
public void setFrameSize(int size)
Set the frame size.- Parameters:
size
- The size.- See Also:
getFrameSize()
-
getSource
public Actor getSource()
Get the source actor.- Returns:
- The actor.
- See Also:
setSource(Actor)
-
setSource
public void setSource(Actor source)
Set the source actor.- Parameters:
source
- The actor.- See Also:
getSource()
-
getSchedulerMux
public java.lang.String getSchedulerMux()
Get the name of the scheduler multiplexor.- Returns:
- The name.
- See Also:
setSchedulerMux(String)
-
setSchedulerMux
public void setSchedulerMux(java.lang.String name)
Set the name of the scheduler multiplexor.- Parameters:
name
- The name.- See Also:
getSchedulerMux()
-
toString
public java.lang.String toString()
Return a string representation of this object.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-