|
@@ -306,9 +306,9 @@ public class SimulationManager {
|
|
|
|
|
|
public boolean legitState(CpsObject neighbor, CpsObject current){
|
|
public boolean legitState(CpsObject neighbor, CpsObject current){
|
|
if(current instanceof HolonSwitch){
|
|
if(current instanceof HolonSwitch){
|
|
- if(((HolonSwitch) current).getActiveAt()[timeStep]){
|
|
|
|
|
|
+ if(((HolonSwitch) current).getState(timeStep)){
|
|
if(neighbor instanceof HolonSwitch){
|
|
if(neighbor instanceof HolonSwitch){
|
|
- if(((HolonSwitch) neighbor).getActiveAt()[timeStep]){
|
|
|
|
|
|
+ if(((HolonSwitch) neighbor).getState(timeStep)){
|
|
return true;
|
|
return true;
|
|
}else{
|
|
}else{
|
|
return false;
|
|
return false;
|