OW2 Consortium joram

Compare Revisions

Ignore whitespace Rev 6548 → Rev 6549

/trunk/joram/a3/rt/src/main/java/fr/dyade/aaa/agent/AgentId.java
447,15 → 447,20
}
 
/**
*
* @return <code>true</code> if this id is equals to NullId;
* <code>false</code> otherwise.
* @return <code>true</code> if this id is equals to NullId; <code>false</code> otherwise.
*/
public final boolean isNullId() {
return (stamp == NullIdStamp);
}
 
/**
* @return <code>true</code> if this the 2 agents are colocated; <code>false</code> otherwise.
*/
public final boolean isLocal() {
return (to == AgentServer.getServerId());
}
 
/**
* Indicates whether some other agent id. is "equal to" this one. This method
* returns <code>true</code> if and only if obj is an <code>AgentId</code>
* and refer to the same agent (from, to and stamp fields are equals).