Package ptolemy.domains.de.lib.aspect
Class AFDXVlink
- java.lang.Object
-
- ptolemy.domains.de.lib.aspect.AFDXVlink
-
public class AFDXVlink extends java.lang.ObjectThis 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.DoublegetBag()Get the value of the bag.intgetFrameSize()Get the frame size.java.lang.StringgetName()Get the name of the virtual link object.java.lang.StringgetSchedulerMux()Get the name of the scheduler multiplexor.ActorgetSource()Get the source actor.voidsetBag(java.lang.Double bag)Set the value of the bag.voidsetFrameSize(int size)Set the frame size.voidsetName(java.lang.String name)Set the name of the virtual link object.voidsetSchedulerMux(java.lang.String name)Set the name of the scheduler multiplexor.voidsetSource(Actor source)Set the source actor.java.lang.StringtoString()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:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
-