Modifier and Type | Field and Description |
---|---|
private Port |
_port
The Port through which the value transits.
|
private V |
_value
The value sent or received.
|
Constructor and Description |
---|
Content(Port port,
V value)
Content constructor that takes a port and a value.
|
Content(String portName,
V value)
Content constructor that takes a port and a value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Check if the specified object is a Content and contains the same
things.
|
int |
hashCode()
The hash code of this object.
|
boolean |
onPort(Port port)
Check if the instance is on the specified Port.
|
Port |
port()
Getter on the contained port.
|
String |
portName()
Getter on the contained port's name.
|
String |
toString() |
V |
value()
Getter on the contained value.
|
Object |
valueOnPort(String portName)
Access to the value if the port's name is the specified string.
|
private Port _port
private V _value
public Content(Port port, V value)
port
- the port to which the value is sent.value
- the value to be sent.public Port port()
public String portName()
public V value()
public boolean equals(Object o)
public int hashCode()
public boolean onPort(Port port)
Copyright © 2017–2019 UniversitĂ© CĂ´te d'Azur, CNRS, I3S. All rights reserved.