Class PortChannelCode
- java.lang.Object
-
- ptolemy.domains.csp.demo.BusContention.PortChannelCode
-
public class PortChannelCode extends java.lang.Object
A PortChannelCode is an object that carries prioritization information to be associated with different contenders in a resource contention scheme. A PortChannelCode consists of three components as its name implies and each instance of PortChannelCode is associated with a single resource contender. The port (channel) value represents the port (channel) through which a particular contender is connected. The code value represents the priority assigned to the contender.- Since:
- Ptolemy II 0.3
- Version:
- $Id$
- Author:
- John S. Davis II
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (davisj)
-
-
Constructor Summary
Constructors Constructor Description PortChannelCode(IOPort port, int channel, int code)
Construct a PortChannelCode with the specified port, channel and priority code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChannel()
Return the channel associated with this object.int
getCode()
Return the code associated with this object.IOPort
getPort()
Return the port associated with this object.
-
-
-
Constructor Detail
-
PortChannelCode
public PortChannelCode(IOPort port, int channel, int code)
Construct a PortChannelCode with the specified port, channel and priority code.- Parameters:
port
- The specified port.channel
- The specified channel.code
- The specified code.
-
-
Method Detail
-
getChannel
public int getChannel()
Return the channel associated with this object.- Returns:
- The channel associated with this object.
-
getCode
public int getCode()
Return the code associated with this object.- Returns:
- The code associated with this object.
-
getPort
public IOPort getPort()
Return the port associated with this object.- Returns:
- The port associated with this object.
-
-