|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Port describes what data in which format an interface can deliver. A Port usually knows how to create a Peer for Objects if they are needed but this interface leaves it open which type the Peer might be and which method should be used for it. Subclasses can specify which types of Peers they create under which circumstances. A usual Port consists therefore mainly of a method for retrieving a peer associated with the port, methods which give information about the capabilities and attributes of the port as well as methods for connecting and disconnecting other Objects.
Method Summary | |
boolean |
conformsTo(Object identifier)
Tells whether the given Object somehow identifies this Port. |
Port[] |
getExcludedPorts()
Returns an Array consisting of all Ports which cannot be used together with this port at a given time. |
long |
getGranularity()
Returns the number of different values which this port can put out or read in. |
double |
getMaximumValue()
Returns the maximum value this port can really put out or read in. |
double |
getMinimumValue()
Returns the minimum value this port can really put out or read in. |
Object |
getPortID()
Returns some Object describing this instance of a Port. |
int |
getPortNumber()
Returns a numeric id for this Port which is maybe easier to interpret by code than the result of getPortID() . |
Method Detail |
public int getPortNumber()
getPortID()
.getPortID()
public Object getPortID()
conformsTo(Object)
with it as a parameter will yield true as a result.The current implementations use a String which is equal to the names printed on the hardware-interface or used in its manual.getPortNumber()
,
conformsTo(Object)
,
RobotInterface.getPort(Object)
public Port[] getExcludedPorts()
public double getMinimumValue()
public double getMaximumValue()
public long getGranularity()
public boolean conformsTo(Object identifier)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |