public class Port extends Object
A Port is a part of an atomic model's mean of communication. Every message sent or received by an atomic model must travel through one of its Ports.
There are no default names for Ports, but common ones are "in" and "out". The uniqueness of the name is important for equality between two Port objects is checked using their name.
Modifier and Type | Field and Description |
---|---|
protected String |
_name
The name of the Port.
|
Constructor and Description |
---|
Port(String name)
Constructor with a parameter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Checks the equality between the name of this Port and the name of the
Port given in parameter.
|
int |
hashCode()
The hash code of a Port is the hash code of its name attribute.
|
String |
name()
A getter to the name attribute.
|
String |
toString() |
protected String _name
public Port(String name)
name
- the (unique) name of the Port. Uniqueness is not verified,
it is up to the developer to guaranty it.public String name()
public String toString()
public boolean equals(Object o)
The
Copyright © 2017–2019 UniversitĂ© CĂ´te d'Azur, CNRS, I3S. All rights reserved.